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

Allow multiple rules #435

Merged
merged 3 commits into from
Jun 7, 2016
Merged

Allow multiple rules #435

merged 3 commits into from
Jun 7, 2016

Conversation

fclaeys
Copy link
Contributor

@fclaeys fclaeys commented Jun 6, 2016

This PR allow to set more than one route in labels/tags (#419)

```

- Three frontends are defined: `frontend1`, `frontend2` and `frontend3`
- `frontend1` will forward the traffic to the `backend2` if the rule `Host: test.localhost, test2.localhost` is matched
- `frontend2` will forward the traffic to the `backend1` if the rule `Host: localhost, {subdomain:[a-z]+}.localhost` is matched (forwarding client `Host` header to the backend)
- `frontend3` will forward the traffic to the `backend2` if the rule `Path:/test` is matched
- `frontend3` will forward the traffic to the `backend2` if the rule `Host: test3.localhost; Path:/test` is matched
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the rule Host: test3.localhost; Path:/test is matched

I would prefer: if the rules Host: test3.localhost and Path:/testare matched ;)

@emilevauge
Copy link
Member

One minor comment ;)
Other than that, LGTM! This is really cool, thanks a lot @fclaeys :)
/cc @vdemeester

Fixes #419

@fclaeys
Copy link
Contributor Author

fclaeys commented Jun 7, 2016

@emilevauge documentation OK

@vdemeester
Copy link
Contributor

LGTM 🐮 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants