Skip to content

Commit 7568732

Browse files
thewilkybarkidweaverryan
authored andcommitted
Remove redundant references to trusting HttpCache
1 parent 17addb1 commit 7568732

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

book/http_cache.rst

-4
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ kernel::
163163
The caching kernel will immediately act as a reverse proxy - caching responses
164164
from your application and returning them to the client.
165165

166-
Now that you're using a "proxy", you'll need to configure ``127.0.0.1`` under
167-
the ``trusted_proxies`` configuration (see :ref:`the reference <reference-framework-trusted-proxies>`).
168-
Without this, the client's IP address and a few other things won't report correctly.
169-
170166
.. tip::
171167

172168
The cache kernel has a special ``getLog()`` method that returns a string

components/http_foundation/trusting_proxies.rst

-6
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ your proxy.
3030
// only trust proxy headers coming from this IP addresses
3131
Request::setTrustedProxies(array('192.0.0.1', '10.0.0.0/8'));
3232
33-
.. note::
34-
35-
When using Symfony's internal reverse proxy (``AppCache.php``) make sure to add
36-
``127.0.0.1`` to the list of trusted proxies.
37-
38-
3933
Configuring Header Names
4034
------------------------
4135

cookbook/request/load_balancer_reverse_proxy.rst

-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ special ``X-Forwarded-*`` headers. For example, instead of reading the ``REMOTE_
1111
header (which will now be the IP address of your reverse proxy), the user's
1212
true IP will be stored in an ``X-Forwarded-For`` header.
1313

14-
.. tip::
15-
16-
If you're using Symfony's :ref:`AppCache<symfony-gateway-cache>` for caching,
17-
then you *are* using a reverse proxy with the IP address ``127.0.0.1``.
18-
You'll need to configure that address as a trusted proxy below.
19-
2014
If you don't configure Symfony to look for these headers, you'll get incorrect
2115
information about the client's IP address, whether or not the client is connecting
2216
via HTTPS, the client's port and the hostname being requested.

0 commit comments

Comments
 (0)