|
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 |
Answered by
ToshY
Apr 21, 2024
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: v2So after seeing that, I tried |
0 replies
Answer selected by
ToshY
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


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.