-
Current docs denote the usage of the following rule: # use as "fallback" for any NON-registered services (with priority below normal)
traefik.http.routers.error-pages-router.rule: HostRegexp(`{host:.+}`) This rule works fine if my domain However when upgrading to Traefik I've been looking at the Traefik migration docs and it denotes that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
After a bit of digging in the docs, I've found the following section regarding "Rule syntax" which includes an example (luckily) with ## Dynamic configuration
http:
routers:
Router-v3:
rule: HostRegexp(`[a-z]+\\.traefik\\.com`)
ruleSyntax: v3
Router-v2:
rule: HostRegexp(`{subdomain:[a-z]+}.traefik.com`)
ruleSyntax: v2 So after seeing that, I tried |
Beta Was this translation helpful? Give feedback.
After a bit of digging in the docs, I've found the following section regarding "Rule syntax" which includes an example (luckily) with
HostRegexp
.So after seeing that, I tried
HostRegexp(`.+`)
instead, and that works.