Merge pull request #409 from aartur/master

Patch for nginx config change
This commit is contained in:
Benoit Chesneau 2012-09-25 16:22:37 -07:00
commit 52c057b92f

View File

@ -67,15 +67,13 @@ http {
keepalive_timeout 5;
# path for static files
root /path/to/app/current/public;
location / {
# checks for static file, if not found proxy to app
try_files $uri @proxy_to_app;
location ^~ /static {
# path for static files
alias /path/to/app/current/public/static;
}
location @proxy_to_app {
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;