File tree 3 files changed +6
-4
lines changed
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.
22
22
23
23
Remember to call the :ref: `Request::setTrustedProxies() <request-set-trusted-proxies >`
24
24
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.
26
26
27
27
.. _varnish-x-forwarded-headers :
28
28
Original file line number Diff line number Diff line change @@ -182,7 +182,6 @@ named ``kernel.http_method_override``.
182
182
$request = Request::createFromGlobals();
183
183
// ...
184
184
185
-
186
185
.. _reference-framework-trusted-proxies :
187
186
188
187
trusted_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:
31
31
// ...
32
32
$request = Request::createFromGlobals();
33
33
34
- // tell Symfony about your revers proxy
34
+ // tell Symfony about your reverse proxy
35
35
Request::setTrustedProxies(
36
- // the ip address (or range) of your proxy
36
+ // the IP address (or range) of your proxy
37
37
['192.0.0.1', '10.0.0.0/8'],
38
38
39
39
// trust *all* "X-Forwarded-*" headers
40
40
Request::HEADER_X_FORWARDED_ALL
41
41
42
42
// or, if your proxy instead uses the "Forwarded" header
43
43
// Request::HEADER_FORWARDED
44
+
45
+ // or, if you're using AWS ELB
46
+ // Request::HEADER_X_FORWARDED_AWS_ELB
44
47
);
45
48
46
49
The Request object has several ``Request::HEADER_* `` constants that control exactly
You can’t perform that action at this time.
0 commit comments