mirror of
https://github.com/tiyn/wiki.git
synced 2025-04-02 15:07:45 +02:00
docker/traefik: fixed www redirection
This commit is contained in:
parent
23a7f413f1
commit
6fba5d2a21
@ -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.<service name>-secure.rule=Host(`www.<subdomain>.<domain>`, `<subdomain>.<domain>`)"
|
||||
- "traefik.http.routers.<service name>.rule=Host(`<subdomain>.<domain>`)"
|
||||
```
|
||||
|
||||
In the opposite case the domain will be `www.<subdomain>.<domain>`.
|
||||
|
||||
## Setup Mailserver
|
||||
|
||||
If setting up a
|
||||
|
Loading…
x
Reference in New Issue
Block a user