Skip to content

Commit ac3689b

Browse files
committed
Added support for standard Forwarded header
1 parent d452137 commit ac3689b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/request/load_balancer_reverse_proxy.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ an AWS Elastic Load Balancer) or a reverse proxy (e.g. Varnish for
77

88
For the most part, this doesn't cause any problems with Symfony. But, when
99
a request passes through a proxy, certain request information is sent using
10-
either the standard ``Forwarded`` header or non standard special ``X-Forwarded-*``
10+
either the standard ``Forwarded`` header or non-standard special ``X-Forwarded-*``
1111
headers. For example, instead of reading the ``REMOTE_ADDR`` header (which
1212
will now be the IP address of your reverse proxy), the user's true IP will be
1313
stored in a standard ``Forwarded: for="..."`` header or a non standard
@@ -95,12 +95,12 @@ other information.
9595
My Reverse Proxy Uses Non-Standard (not X-Forwarded) Headers
9696
------------------------------------------------------------
9797

98-
Although `rfc7239`_ recently defined a standard ``Forwarded`` header to disclose
99-
all proxy information, most reverse proxies store information on non standard
98+
Although `RFC 7239`_ recently defined a standard ``Forwarded`` header to disclose
99+
all proxy information, most reverse proxies store information on non-standard
100100
``X-Forwarded-*`` headers.
101101
But if your reverse proxy uses other non-standard header names, you can configure
102102
these (see ":doc:`/components/http_foundation/trusting_proxies`").
103103
The code for doing this will need to live in your front controller (e.g. ``web/app.php``).
104104

105105
.. _`security groups`: http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/using-elb-security-groups.html
106-
.. _`rfc7239`: http://tools.ietf.org/html/rfc7239
106+
.. _`RFC 7239`: http://tools.ietf.org/html/rfc7239

0 commit comments

Comments
 (0)