diff --git a/deployment/proxies.rst b/deployment/proxies.rst
index 62d5c182c1e..5b12fb5e946 100644
--- a/deployment/proxies.rst
+++ b/deployment/proxies.rst
@@ -34,7 +34,7 @@ and what headers your reverse proxy uses to send information:
# the IP address (or range) of your proxy
trusted_proxies: '192.0.0.1,10.0.0.0/8'
# trust *all* "X-Forwarded-*" headers
- trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port']
+ trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port', 'x-forwarded-prefix']
# or, if your proxy instead uses the "Forwarded" header
trusted_headers: ['forwarded']
@@ -59,6 +59,7 @@ and what headers your reverse proxy uses to send information:
x-forwarded-host
x-forwarded-proto
x-forwarded-port
+ x-forwarded-prefix
forwarded
@@ -75,7 +76,7 @@ and what headers your reverse proxy uses to send information:
// the IP address (or range) of your proxy
->trustedProxies('192.0.0.1,10.0.0.0/8')
// trust *all* "X-Forwarded-*" headers (the ! prefix means to not trust those headers)
- ->trustedHeaders(['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port'])
+ ->trustedHeaders(['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port', 'x-forwarded-prefix'])
// or, if your proxy instead uses the "Forwarded" header
->trustedHeaders(['forwarded'])
;