8000 replace trusted_proxies reference · richard4339/symfony-docs@2f83164 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f83164

Browse files
xabbuhweaverryan
authored andcommitted
replace trusted_proxies reference
1 parent 3632c08 commit 2f83164
Copy full SHA for 2f83164

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

http_cache/varnish.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Varnish automatically forwards the IP as ``X-Forwarded-For`` and leaves the
2020
trusted proxy, Symfony will see all requests as coming through insecure HTTP
2121
connections from the Varnish host instead of the real client.
2222

23-
Remember to configure :ref:`framework.trusted_proxies <reference-framework-trusted-proxies>`
24-
in the Symfony configuration so that Varnish is seen as a trusted proxy and the
25-
:ref:`X-Forwarded <varnish-x-forwarded-headers>` headers are used.
23+
Remember to call the :method:`Symfony\\Component\\HttpFoundation\\Request::setTrustedProxies`
24+
method in your front controller so that Varnish is seen as a trusted proxy
25+
and the :ref:`X-Forwarded <varnish-x-forwarded-headers>` headers are used.
2626

2727
Varnish, in its default configuration, sends the ``X-Forwarded-For`` header but
2828
does not filter out the ``Forwarded`` header. If you have access to the Varnish

0 commit comments

Comments
 (0)
0