Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dda9e88

Browse filesBrowse 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
Copy full SHA for dda9e88

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎components/http_foundation/trusting_proxies.rst

Copy file name to clipboardExpand all lines: components/http_foundation/trusting_proxies.rst
+6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.