Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Domains Rule #430

Closed
pilgrim2go opened this issue Jun 2, 2016 · 2 comments
Closed

Multiple Domains Rule #430

pilgrim2go opened this issue Jun 2, 2016 · 2 comments

Comments

@pilgrim2go
Copy link

Hi,

I want to capture both requests
api-xxx.123.com
and
api-yyy.456.com

Here is my rule

      - "traefik.frontend.rule=HostRegexp:{subdomain:api-([^.]+)+}.(123|456).([a-z]+)+"

But It failed for me.

Is it possible to handle both domains ? or where am I wrong?

@leokhoa
Copy link

leokhoa commented Jun 3, 2016

Try this:

  • "traefik.frontend.rule=HostRegexp:{subdomain:api-([^.]+)+.(123|456).([a-z]+)+}"

@emilevauge
Copy link
Member

@pilgrim2go: is your issue solved?

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants