From dc2fbdb9723546a2ce76fb243e36b67f70825b8d Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Tue, 16 Jan 2024 11:27:17 +0100 Subject: [PATCH] note on forcing https --- routing.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/routing.rst b/routing.rst index 4b109a5f166..bbc81ba2bac 100644 --- a/routing.rst +++ b/routing.rst @@ -2492,6 +2492,15 @@ when the route doesn't exist:: Forcing HTTPS on Generated URLs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.. note:: + + If your server runs behind a proxy that terminates SSL, make sure to + :doc:`configure Symfony to work behind a proxy ` + + The configuration for the scheme is only used for non-HTTP requests. + The ``schemes`` option together with incorrect proxy configuration will + lead to a redirect loop. + By default, generated URLs use the same HTTP scheme as the current request. In console commands, where there is no HTTP request, URLs use ``http`` by default. You can change this per command (via the router's ``getContext()``