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

Skip to content

Commit dc2fbdb

Browse files
dbujaviereguiluz
authored andcommitted
note on forcing https
1 parent f1621cc commit dc2fbdb

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)