Skip to content

Commit 98fc47f

Browse files
committed
minor #19423 [Routing] [url generation] note on forcing https (dbu)
This PR was submitted for the 7.1 branch but it was merged into the 6.3 branch instead. Discussion ---------- [Routing] [url generation] note on forcing https this got me confused when trying to ignore the problem i had in #19422 - i think cross-linking the proxy configuration here is helpful for people who also try to skirt doing a correct setup in their infrastructure. Commits ------- dc2fbdb note on forcing https
2 parents f1621cc + dc2fbdb commit 98fc47f

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
@@ -2492,6 +2492,15 @@ when the route doesn't exist::
24922492
Forcing HTTPS on Generated URLs
24932493
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24942494

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

0 commit comments

Comments
 (0)