From: Bryan Date: Fri, 7 Feb 2014 07:07:51 +0000 (-0500) Subject: Pass from nginx to Django, closes #324 X-Git-Tag: release-20150131~175 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a82039d8e485a204a383d9033c930dfce4223622;p=oweals%2Fkarmaworld.git Pass from nginx to Django, closes #324 --- diff --git a/README.md b/README.md index 720cec1..f02354f 100644 --- 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 93166c9..07725ed 100644 --- 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