Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc7087bf

Browse files
committed
tweaks thanks to review
1 parent45b419d commitc7087bf

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

‎http_cache/varnish.rst‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 0 additions & 1 deletion
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‎

Lines changed: 5 additions & 2 deletions
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 yourrevers proxy
34+
// tell Symfony about yourreverse proxy
3535
Request::setTrustedProxies(
36-
// theip address (or range) of your proxy
36+
// theIP 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)

[8]ページ先頭

©2009-2025 Movatter.jp