Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit1a21919

Browse files
tczweaverryan
authored andcommitted
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 parentd4ca16a commit1a21919

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)

[8]ページ先頭

©2009-2025 Movatter.jp