80; client_max_body_size 1024m; client_body_buffer_size 8k; proxy_read_timeout 300; server_name www.localhost.com; root /var/www/myapp.current; keepalive_timeout 0; access_log /var/log/nginx/myapp.access combined; error_log /var/log/nginx/myapp.error; location /static { root /var/www/myapp.current/root/; autoindex on; } location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_buffering off; if (!-f $request_filename) { proxy_pass http://myapp_starman; } } } https://gist.github.com/ 1126172 Wednesday, April 25, 12