Docs update: forward url protocol in sample nginx configs

This commit is contained in:
Srijan Choudhary 2014-02-11 04:36:13 +05:30
parent 079e5d19da
commit 5525184243
2 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,8 @@ originating from CORS_. Also, privacy-protecting browser addons such as
location /isso { location /isso {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Script-Name /isso; proxy_set_header X-Script-Name /isso;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8080; proxy_pass http://localhost:8080;
} }
} }

View File

@ -111,6 +111,7 @@ configuration looks like this:
proxy_pass http://localhost:8080; proxy_pass http://localhost:8080;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
} }
} }