Skip to content

Commit

Permalink
minor symfony#3778 Adding information on internal reverse proxy (tcz)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
weaverryan committed Apr 12, 2014
2 parents d4ca16a + 1a21919 commit dda9e88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/http_foundation/trusting_proxies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------------------
Expand Down

0 comments on commit dda9e88

Please sign in to comment.