Skip to content

Commit 8f0f89d

Browse files
committed
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
1 parent 1172b7d commit 8f0f89d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/http_foundation/trusting_proxies.rst

Lines changed: 6 additions & 0 deletions
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)