1

How can I setup nginx to serve virtualhosts with rails(unicorn/passenger) and php-fpm

view story
linux-howto

http://serverfault.com – I would like to serve multiple sites on one instance. I install nginx, php-fpm, and a rails app. I use sites like this to guide me. I configure php-fpm to listen to a local socket listen = /var/run/php-fpm/php-fpm.sock I configure ngnix with multiple hosts: include /etc/nginx/conf.d/*.conf I have several site php conf files like /etc/nginx/conf.d/site1.conf server { listen 80; server_name site1.com www.site1.com; root /var/www/site1; access_log /var/log/nginx/site1.com-access.log; error_log /var/log/nginx/site1.com-error.log; location / { index (HowTos)