File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ connections from the Varnish host instead of the real client.
2222
2323Remember to call the :ref: `Request::setTrustedProxies() <request-set-trusted-proxies >`
2424method 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
Original file line number Diff line number Diff line change @@ -182,7 +182,6 @@ named ``kernel.http_method_override``.
182182 $request = Request::createFromGlobals();
183183 // ...
184184
185-
186185.. _reference-framework-trusted-proxies :
187186
188187trusted_proxies
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments