Nginx settings for Symfony 2

So you have installed Symfony 2 in your Nginx server but not able to make it work ? Getting 404 , 502 Bad Gateway errors ? This is due to the config settings of Nginx.
Symfony 2 Nginx Server
After much search and experimentation , I am finally able to get a 'Working' config for symfony 2.
Here is the config file that can be used for Symfony site. Edit either the /etc/nginx/conf.d/default.conf or /etc/nginx/conf.d/virtual.conf according to your Nginx server.

Just change the site name and full path to Symfony Web folder and restart the nginx server (sudo service nginx restart).
Thats it :) ( Thank me for saving your couple of hours :p )

About This Blog

There is something for everyone. !! A tech blog on various topics. Let it be devops, programming etc; we have it all covered here in layman terms :)

Total Pageviews

Back to TOP