SSLHost deprecated but RedirectRegex only work on Request?


I am using traefik 2.9.8 in a lab environment with a http backend application.

In the documentation here Traefik Headers Documentation - Traefik

I read : "SSLHost Deprecated in favor of the RedirectRegex middleware."

SSLHost implementation here (line 509), show that it affects the "response" headers :

RedirectRegex only works on the request headers, right ?

The typical scenario is :

  • Traefik listens on HTTPS,
  • Backend is using HTTP,
  • Backend sends back a redirect 302 with a Location response header

With the SSLHost configuration option being deprecated, there is no way to do the same thing, which is to modify the reponse header to set https://

Maybe i am missing something ?

Thank you.