Skip to content

Commit dda9e88

Browse files
committed
minor symfony#3778 Adding information on internal reverse proxy (tcz)
This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes symfony#3778). Discussion ---------- Adding information on internal reverse proxy For more information see: http://stackoverflow.com/questions/9029757/how-do-i-get-the-user-ip-address-in-symfony2-controller Commits ------- 8f0f89d Adding information on internal reverse proxy
2 parents d4ca16a + 1a21919 commit dda9e88

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/http_foundation/trusting_proxies.rst

+6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ your proxy.
2424
2525
// only trust proxy headers coming from this IP addresses
2626
Request::setTrustedProxies(array('192.0.0.1', '10.0.0.0/8'));
27+
28+
.. note::
29+
30+
When using Symfony's internal reverse proxy (``AppCache.php``) make sure to add
31+
``127.0.0.1`` to the list of trusted proxies.
32+
2733

2834
Configuring Header Names
2935
------------------------

0 commit comments

Comments
 (0)