Heho
Iˋm trying to redirect a domain to another but it doesnt work. I do not understand why
Can you help me please?
I‘m using docker-compose with labels
labels:
traefik.enable: "true"
traefik.docker.network: "weave"
traefik.http.routers.link.entrypoints: "https"
traefik.http.routers.link.rule: "HostRegexp(`link.domain.cloud`,`do.gs`,`{subhost:[a-zA-Z0-9-]+}.do.gs`)"
traefik.http.routers.link.tls: "true"
traefik.http.routers.link.tls.certresolver: "letsencrypt"
traefik.http.routers.link.middlewares: "dogs@docker"
traefik.http.middlewares.dogs.replacepathregex.regex: "^https?://do.gs(.*)"
traefik.http.middlewares.dogs.replacepathregex.replacement: "https://dogs.ch$$1"
traefik.http.services.link.loadbalancer.server.port: "80"
There are no errors in log or Dashboard . The connection between router and middleware is visible in the dashboard