From 6acb5dde30d24c6cb51dc8eb0cfe5b6267a518f0 Mon Sep 17 00:00:00 2001 From: Dima <65077020+dgabriel123@users.noreply.github.com> Date: Mon, 25 Jan 2021 14:15:02 -0500 Subject: [PATCH] Update quickstart.rst --- docs/quickstart.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 `_.