From 6fba5d2a21979fe7400f304b9e1489d28ec78700 Mon Sep 17 00:00:00 2001 From: tiyn Date: Fri, 2 Aug 2024 03:29:31 +0200 Subject: [PATCH] docker/traefik: fixed www redirection --- wiki/docker/traefik.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wiki/docker/traefik.md b/wiki/docker/traefik.md index 81b9eaa..9be36c3 100644 --- a/wiki/docker/traefik.md +++ b/wiki/docker/traefik.md @@ -231,10 +231,15 @@ In both of those cases the line of the first code block in this section that spe and subdomain needs to include both the www and the non-www domains. This should look something like the following +Make sure to add the domain that will be redirected to the labels aswell. +For redirection to www domains this will look something like the following. + ```yml - - "traefik.http.routers.-secure.rule=Host(`www..`, `.`)" + - "traefik.http.routers..rule=Host(`.`)" ``` +In the opposite case the domain will be `www..`. + ## Setup Mailserver If setting up a