projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2de8ca0
)
Pass from nginx to Django, closes #324
author
Bryan
<btbonval@gmail.com>
Fri, 7 Feb 2014 07:07:51 +0000
(
02:07
-0500)
committer
Bryan
<btbonval@gmail.com>
Fri, 7 Feb 2014 07:07:51 +0000
(
02:07
-0500)
README.md
patch
|
blob
|
history
Vagrantfile
patch
|
blob
|
history
diff --git
a/README.md
b/README.md
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;
}
}
diff --git
a/Vagrantfile
b/Vagrantfile
index 93166c9cc990921ce82ab2954d0bbc5f193ab393..07725ed9ff817ff5d43df44203674d101df08eda 100644
(file)
--- a/
Vagrantfile
+++ b/
Vagrantfile
@@
-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