Skip to content

Commit c7087bf

Browse files
committed
tweaks thanks to review
1 parent 45b419d commit c7087bf

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

http_cache/varnish.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ connections from the Varnish host instead of the real client.
2222

2323
Remember to call the :ref:`Request::setTrustedProxies() <request-set-trusted-proxies>`
2424
method in your front controller so that Varnish is seen as a trusted proxy
25-
and the :ref:`X-Forwarded <varnish-x-forwarded-headers>` headers are used.
25+
and the :ref:`X-Forwarded-* <varnish-x-forwarded-headers>` headers are used.
2626

2727
.. _varnish-x-forwarded-headers:
2828

reference/configuration/framework.rst

-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ named ``kernel.http_method_override``.
182182
$request = Request::createFromGlobals();
183183
// ...
184184

185-
186185
.. _reference-framework-trusted-proxies:
187186

188187
trusted_proxies

request/load_balancer_reverse_proxy.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,19 @@ and what headers your reverse proxy uses to send information:
3131
// ...
3232
$request = Request::createFromGlobals();
3333
34-
// tell Symfony about your revers proxy
34+
// tell Symfony about your reverse proxy
3535
Request::setTrustedProxies(
36-
// the ip address (or range) of your proxy
36+
// the IP address (or range) of your proxy
3737
['192.0.0.1', '10.0.0.0/8'],
3838
3939
// trust *all* "X-Forwarded-*" headers
4040
Request::HEADER_X_FORWARDED_ALL
4141
4242
// or, if your proxy instead uses the "Forwarded" header
4343
// Request::HEADER_FORWARDED
44+
45+
// or, if you're using AWS ELB
46+
// Request::HEADER_X_FORWARDED_AWS_ELB
4447
);
4548
4649
The Request object has several ``Request::HEADER_*`` constants that control exactly

0 commit comments

Comments
 (0)