Hi,
I've just created an nginx container for website with rule Host. It work well.
I would like to change it to works with HostRegexp for multidomain requests.
I want to have one website for serveral subdomains but regexp doesn't work.
Domains
name.subdomain.domain.com
name.subdomain2.domain.com
name.domain.com
I try tu use this rule in my docker-compose file:
labels:
- "traefik.enable=true"
- "traefik.http.routers.web.rule=HostRegexp(name(.subdomain|subdomain2|.)domain.com
)"
or
labels:
- "traefik.enable=true"
- "traefik.http.routers.web.rule=HostRegexp(name.(subdomain|subdomain2|).domain.com
)"
Both rules are not working. How to do this well?