Permalink
Browse files

minor #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 #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
  • Loading branch information...
weaverryan committed Apr 12, 2014
2 parents d4ca16a + 1a21919 commit dda9e88af29b866041b81251a1a44ed02b2c9ff4
Showing with 6 additions and 0 deletions.
  1. +6 −0 components/http_foundation/trusting_proxies.rst
@@ -24,6 +24,12 @@ your proxy.
// only trust proxy headers coming from this IP addresses
Request::setTrustedProxies(array('192.0.0.1', '10.0.0.0/8'));
.. note::
When using Symfony's internal reverse proxy (``AppCache.php``) make sure to add
``127.0.0.1`` to the list of trusted proxies.
Configuring Header Names
------------------------

0 comments on commit dda9e88

Please sign in to comment.