Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b90808f

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: note on forcing https
2 parents 01a161d + 98fc47f commit b90808f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

routing.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2528,6 +2528,15 @@ when the route doesn't exist::
25282528
Forcing HTTPS on Generated URLs
25292529
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25302530

2531+
.. note::
2532+
2533+
If your server runs behind a proxy that terminates SSL, make sure to
2534+
:doc:`configure Symfony to work behind a proxy </deployment/proxies>`
2535+
2536+
The configuration for the scheme is only used for non-HTTP requests.
2537+
The ``schemes`` option together with incorrect proxy configuration will
2538+
lead to a redirect loop.
2539+
25312540
By default, generated URLs use the same HTTP scheme as the current request.
25322541
In console commands, where there is no HTTP request, URLs use ``http`` by
25332542
default. You can change this per command (via the router's ``getContext()``

0 commit comments

Comments
 (0)