diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 3b215edc..b01bc2fe 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -390,10 +390,10 @@ in HTTP proxy environment. The following code illustrates a setup with a single HTTP proxy in front of the web application:: # At top of file - from werkzeug.contrib.fixers import ProxyFix + from werkzeug.middleware.proxy_fix import ProxyFix # After 'Create app' - app.wsgi_app = ProxyFix(app.wsgi_app, num_proxies=1) + app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1) -To learn more about the ``ProxyFix`` middleware, please see the -`Werkzeug documentation `_. + +To learn more about the ``ProxyFix`` middleware, please see the `Werkzeug documentation `_.