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

Skip to content

Commit 9e564a8

Browse files
authored
note on forcing https
1 parent 6ce725d commit 9e564a8

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
@@ -2485,6 +2485,15 @@ when the route doesn't exist::
24852485
Forcing HTTPS on Generated URLs
24862486
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24872487

2488+
.. note::
2489+
2490+
If your server runs behind a proxy that terminates SSL, make sure to
2491+
:doc:`configure Symfony to work behind a proxy </deployment/proxies>`
2492+
2493+
The configuration for the scheme is only used for non-HTTP requests.
2494+
The ``schemes`` option together with incorrect proxy configuration will
2495+
lead to a redirect loop.
2496+
24882497
By default, generated URLs use the same HTTP scheme as the current request.
24892498
In console commands, where there is no HTTP request, URLs use ``http`` by
24902499
default. You can change this per command (via the router's ``getContext()``

0 commit comments

Comments
 (0)