Pass from nginx to Django, closes #324
authorBryan <btbonval@gmail.com>
Fri, 7 Feb 2014 07:07:51 +0000 (02:07 -0500)
committerBryan <btbonval@gmail.com>
Fri, 7 Feb 2014 07:07:51 +0000 (02:07 -0500)
README.md
Vagrantfile

index 720cec1453ea2976228a824de9232a6009b1536b..f02354f8cff53b5b5f3c162b027a34f0bcb3457c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -327,6 +327,8 @@ not generally be needed.
                 proxy_set_header X-Forwarded-SSL $ssl;
                 proxy_set_header X-Forwarded-Protocol $scheme;
                 proxy_set_header X-Forwarded-Proto $scheme;
+                # pass nginx site back to Django
+                proxy_set_header Host $http_host;
             }
         }
 
index 93166c9cc990921ce82ab2954d0bbc5f193ab393..07725ed9ff817ff5d43df44203674d101df08eda 100644 (file)
@@ -126,6 +126,8 @@ server {
         proxy_set_header X-Forwarded-SSL \\\$ssl;
         proxy_set_header X-Forwarded-Protocol \\\$scheme;
         proxy_set_header X-Forwarded-Proto \\\$scheme;
+        # pass nginx site back to Django
+        proxy_set_header Host \\\$http_host;
     }
 }
 CONFIG