Skip to content
Myr

Merge pull request #3142 from Tom-McDonald/3139-alter-deprecated-docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Replaced deprecated sample code in proxy-setup docs

authored by David Lord · committed by GitHub · parents bbedd64, 994cd1d · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/deploying/wsgi-standalone.rst+2 added-2 removed
122 unmodified lines
123If your httpd is not providing these headers, the most common setup invokes the124host being set from ``X-Forwarded-Host`` and the remote address from125``X-Forwarded-For``::126127 from werkzeug.contrib.fixers import ProxyFix128 app.wsgi_app = ProxyFix(app.wsgi_app)127 from werkzeug.middleware.proxy_fix import ProxyFix128 app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1, x_host=1)129130.. admonition:: Trusting Headers131132 Please keep in mind that it is a security issue to use such a middleware in
18 unmodified lines