Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
This commit is contained in:
streety 2011-04-18 02:49:31 -07:00 committed by Armin Ronacher
parent 3c7b5a68f1
commit 1dd83964f0

View file

@ -72,7 +72,7 @@ problematic values in the WSGI environment usually are `REMOTE_ADDR` and
but you might want to write your own WSGI middleware for specific setups. but you might want to write your own WSGI middleware for specific setups.
The most common setup invokes the host being set from `X-Forwarded-Host` The most common setup invokes the host being set from `X-Forwarded-Host`
and the remote address from `X-Forward-For`:: and the remote address from `X-Forwarded-For`::
from werkzeug.contrib.fixers import ProxyFix from werkzeug.contrib.fixers import ProxyFix
app.wsgi_app = ProxyFix(app.wsgi_app) app.wsgi_app = ProxyFix(app.wsgi_app)