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

Route by path #500

Closed
rogeriollacerda opened this issue Jul 7, 2016 · 2 comments
Closed

Route by path #500

rogeriollacerda opened this issue Jul 7, 2016 · 2 comments

Comments

@rogeriollacerda
Copy link

I have something like 600 microservices running on Mesos/Marathon and the access if from the same host. Ex: api.traefik.io/api1 api.traefik.io/api2. How can I route the requests to each API by context using marathon labels? Is it possible?

@emilevauge
Copy link
Member

@rogeriollacerda you should get more information from http://docs.traefik.io/basics/#frontends on using PathPrefixStrip rules with label traefik.frontend.rule http://docs.traefik.io/toml/#marathon-backend. For example: traefik.frontend.rule=Host:api.traefik.io;PathPrefixStrip:/api1

@rogeriollacerda
Copy link
Author

@emilevauge Thanks! Everything Ok now!

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