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

Commitdda9e88

Browse files
committed
minorsymfony#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 (closessymfony#3778).Discussion----------Adding information on internal reverse proxyFor more information see:http://stackoverflow.com/questions/9029757/how-do-i-get-the-user-ip-address-in-symfony2-controllerCommits-------8f0f89d Adding information on internal reverse proxy
2 parentsd4ca16a +1a21919 commitdda9e88

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