i'm trying to use Traefik HostRegexp for a frontend rule. i was trying something like this:
HostRegexp:{subdomain:.+}.p([0-9]+)+(env1|env2).mydomain.com
But this doesn't work as i wanted.
I wanted traefik to route to my apache server when these kind of URL as used: A.B.C.pXX.env1.mydomain.com A.B.C.pXX.env2.mydomain.com
any clues ? what have i done wrong with my regexp ?
The correct regexp
is:
HostRegexp:{subdomain:.+.p([0-9]+)+(crm|ecom)}.mydomain.com