~mediagoblin/mediagoblin

76c4cf6814f386e5516b791c225f62b9deedbccc — Ben Sturmfels 1 year, 6 months ago 1c8d2b9
Document need for Nginx `proxy_set_header Host` config [trac#5612]

This avoids issues with incorrect URLs in RSS feeds.
1 files changed, 6 insertions(+), 0 deletions(-)

M docs/source/siteadmin/deploying.rst
M docs/source/siteadmin/deploying.rst => docs/source/siteadmin/deploying.rst +6 -0
@@ 429,6 429,12 @@ should be modeled on the following::
     # Forward requests to the MediaGoblin app server.
     location / {
        proxy_pass http://127.0.0.1:6543;
        # On Debian and derivatives the below proxy_set_header lines can be replaced by:
        # include proxy_params;
        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
     }
    }