Permalink
Browse files

Nginx: `X-Forwarded-Host` for `{-,static}.localhost`

  • Loading branch information...
1 parent 4298ae6 commit 4efd2ae5a5efe1acc94d8d175037e1875ad6f448 @hsk81 committed Jan 19, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 proxy.conf
View
@@ -19,6 +19,7 @@ server {
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
@@ -41,6 +42,7 @@ server {
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;

0 comments on commit 4efd2ae

Please sign in to comment.