From 7568732e01e22439bdde7638e01e6d4ac880d570 Mon Sep 17 00:00:00 2001 From: thewilkybarkid Date: Tue, 16 Sep 2014 19:47:58 +0100 Subject: [PATCH] Remove redundant references to trusting HttpCache --- book/http_cache.rst | 4 ---- components/http_foundation/trusting_proxies.rst | 6 ------ cookbook/request/load_balancer_reverse_proxy.rst | 6 ------ 3 files changed, 16 deletions(-) diff --git a/book/http_cache.rst b/book/http_cache.rst index a8166ef4241..190a64fc5fb 100644 --- a/book/http_cache.rst +++ b/book/http_cache.rst @@ -163,10 +163,6 @@ kernel:: The caching kernel will immediately act as a reverse proxy - caching responses from your application and returning them to the client. -Now that you're using a "proxy", you'll need to configure ``127.0.0.1`` under -the ``trusted_proxies`` configuration (see :ref:`the reference `). -Without this, the client's IP address and a few other things won't report correctly. - .. tip:: The cache kernel has a special ``getLog()`` method that returns a string diff --git a/components/http_foundation/trusting_proxies.rst b/components/http_foundation/trusting_proxies.rst index dc126617e5e..fbe9b30cdee 100644 --- a/components/http_foundation/trusting_proxies.rst +++ b/components/http_foundation/trusting_proxies.rst @@ -30,12 +30,6 @@ 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 ------------------------ diff --git a/cookbook/request/load_balancer_reverse_proxy.rst b/cookbook/request/load_balancer_reverse_proxy.rst index 324cbd12838..e23e0ac01c2 100644 --- a/cookbook/request/load_balancer_reverse_proxy.rst +++ b/cookbook/request/load_balancer_reverse_proxy.rst @@ -11,12 +11,6 @@ special ``X-Forwarded-*`` headers. For example, instead of reading the ``REMOTE_ header (which will now be the IP address of your reverse proxy), the user's true IP will be stored in an ``X-Forwarded-For`` header. -.. tip:: - - If you're using Symfony's :ref:`AppCache` for caching, - then you *are* using a reverse proxy with the IP address ``127.0.0.1``. - You'll need to configure that address as a trusted proxy below. - If you don't configure Symfony to look for these headers, you'll get incorrect information about the client's IP address, whether or not the client is connecting via HTTPS, the client's port and the hostname being requested.