File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2485,6 +2485,15 @@ when the route doesn't exist::
24852485Forcing 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+
24882497By default, generated URLs use the same HTTP scheme as the current request.
24892498In console commands, where there is no HTTP request, URLs use ``http `` by
24902499default. You can change this per command (via the router's ``getContext() ``
You can’t perform that action at this time.
0 commit comments