From 8796eeeb626ac4266849e73c92a13e045e67b8a4 Mon Sep 17 00:00:00 2001 From: Paul Wolf <49984289+flowluap@users.noreply.github.com> Date: Thu, 7 May 2020 07:42:48 +0200 Subject: [PATCH] added proxy pass to nginx configuration file prevent request hostname being localhost:8000 | passthrough server hostname from nginx --- DEVELOPMENT.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index 8e88540f7..6d619818d 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -268,6 +268,7 @@ This is an example ``nginx.conf`` configuration for Daphne listing on port proxy_pass http://localhost:8000; } location /rest { + proxy_set_header Host $http_host; proxy_pass http://localhost:8000; } location /ws {