#user deploy; worker_processes 1; error_log /var/www/virtual/upstrat.com/logs/error.log debug; #error_log logs/error.log notice; #error_log logs/error.log info; pid /var/www/virtual/upstrat.com/logs/nginx.pid; events { worker_connections 1024; } http { include conf/mime.types; default_type application/octet-stream; sendfile on; #tcp_nopush on; keepalive_timeout 65; tcp_nodelay on; gzip on; gzip_min_length 1100; gzip_buffers 4 8k; gzip_types text/plain; upstream mongrel { server 127.0.0.1:10850; server 127.0.0.1:10851; } upstream argos { server 127.0.0.1:10856; server 127.0.0.1:10857; } server { listen 8085; server_name ledgit.com; root /var/www/virtual/upstrat.com/ledgit_com/ledgit/public; index index.html index.htm; client_body_temp_path /var/www/virtual/upstrat.com/nginx/client_body_temp; proxy_temp_path /var/www/virtual/upstrat.com/nginx/proxy_temp; fastcgi_temp_path /var/www/virtual/upstrat.com/nginx/fast_cgi_temp; access_log /var/www/virtual/upstrat.com/logs/access.log; location ~ /(images|stylesheets|javascripts)/ { root /var/www/virtual/upstrat.com/ledgit_com/ledgit/public; } location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect false; client_body_temp_path /var/www/virtual/upstrat.com/nginx/client_body_temp; if (-f $request_filename/index.html) { rewrite (.*) $1/index.html break; } if (-f $request_filename.html) { rewrite (.*) $1.html break; } if (!-f $request_filename) { proxy_pass http://mongrel; break; } } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } server { listen 8085; server_name argos.ledgit.com; root /var/www/virtual/upstrat.com/argos/app/public; index index.html index.htm; client_body_temp_path /var/www/virtual/upstrat.com/nginx/client_body_temp/argos; proxy_temp_path /var/www/virtual/upstrat.com/nginx/proxy_temp/argos; fastcgi_temp_path /var/www/virtual/upstrat.com/nginx/fast_cgi_temp/argos; access_log /var/www/virtual/upstrat.com/logs/argos/access.log; location ~ /(images|stylesheets|javascripts)/ { root /var/www/virtual/upstrat.com/argos/app/public; } location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect false; if (-f $request_filename/index.html) { rewrite (.*) $1/index.html break; } if (-f $request_filename.html) { rewrite (.*) $1.html break; } if (!-f $request_filaename) { proxy_pass http://argos; break; } } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } }a