So you're finding that your
app_dev.php works but
app.php does not work?
I've had this happen in the past and there are a few things worth checking.
Copy the contents of
app.phpand see if
www.firstproj.devwork. If it works then you know it's not a problem with NGINX but instead a problem with your Symfony Setup.
Have you created a
prodor only for
dev? Are they writable by
Have you checked
/var/log/nginx/project_error.logto see if any error is showing up when trying to access
At the top of the
app.phpfile add in the line
error_reporting(E_ALL);. Now when you try to access the production version do you see any error?
Try clearing the cache for production. Depending how you have you server setup (Are you using
CHOWN/CHMODfor your cache/log files?) You can run something like
sudo su -u www-data php bin/console cache:clear --env prod