Skip to content

Commit 12840b1

Browse files
committed
improve linking between proxy config sections
1 parent 2b1935b commit 12840b1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

book/http_cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ The caching kernel will immediately act as a reverse proxy - caching responses
163163
from your application and returning them to the client.
164164

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

169169
.. tip::

cookbook/request/load_balancer_reverse_proxy.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ and which reverse proxy IP addresses will be doing this type of thing:
6060
6161
In this example, you're saying that your reverse proxy (or proxies) has
6262
the IP address ``192.0.0.1`` or matches the range of IP addresses that use
63-
the CIDR notation ``10.0.0.0/8``. For more details, see :ref:`reference-framework-trusted-proxies`.
63+
the CIDR notation ``10.0.0.0/8``. For more details, see the
64+
:ref:`framework.trusted_proxies <reference-framework-trusted-proxies>` option.
6465

6566
That's it! Symfony will now look for the correct ``X-Forwarded-*`` headers
6667
to get information like the client's IP address, host, port and whether or
@@ -97,7 +98,7 @@ My Reverse Proxy Uses Non-Standard (not X-Forwarded) Headers
9798

9899
Most reverse proxies store information on specific ``X-Forwarded-*`` headers.
99100
But if your reverse proxy uses non-standard header names, you can configure
100-
these (:doc:`see reference </components/http_foundation/trusting_proxies>`.
101+
these (see ":doc:`/components/http_foundation/trusting_proxies`").
101102
The code for doing this will need to live in your front controller (e.g. ``web/app.php``).
102103

103104
.. _`security groups`: http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/using-elb-security-groups.html

0 commit comments

Comments
 (0)