From 1a219197def68849f2561396c6ce213240516cc4 Mon Sep 17 00:00:00 2001 From: Zoltan Toth-Czifra Date: Tue, 8 Apr 2014 15:55:00 +0200 Subject: [PATCH] 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 --- components/http_foundation/trusting_proxies.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/http_foundation/trusting_proxies.rst b/components/http_foundation/trusting_proxies.rst index fcd32d70b83..f514e97835d 100644 --- a/components/http_foundation/trusting_proxies.rst +++ b/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 ------------------------