From a82039d8e485a204a383d9033c930dfce4223622 Mon Sep 17 00:00:00 2001 From: Bryan Date: Fri, 7 Feb 2014 02:07:51 -0500 Subject: [PATCH] Pass from nginx to Django, closes #324 --- README.md | 2 ++ Vagrantfile | 2 ++ 2 files changed, 4 insertions(+) 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 -- 2.25.1