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

Add Rule AddPrefix #931

Merged
merged 4 commits into from
Dec 21, 2016
Merged

Add Rule AddPrefix #931

merged 4 commits into from
Dec 21, 2016

Conversation

juliens
Copy link
Member

@juliens juliens commented Dec 3, 2016

Add the ability to add a prefix in the url when the backend is called.

example :

[backends]

[backends.backend-test.servers.server-1]
url = "http:/backend-server"
weight = 1

[frontends]
[frontends.frontend-test]
    backend = "backend-test"
    entryPoints = ["http"]
[frontends.frontend-test.routes.route-host-test]
    rule = "PathPrefix:/test;PathPrefixStrip:/test;AddPrefix:/prefix"

when call http://traefik/test/url => forward http://backend-server/prefix/url

@emilevauge
Copy link
Member

@juliens thanks for this one :)
Could you add some documentation in traefik.sample.toml and in docs/ ?

Copy link
Member

@emilevauge emilevauge left a comment

Choose a reason for hiding this comment

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

LGTM!
Thanks @juliens :)
/cc @containous/traefik

@emilevauge
Copy link
Member

Ping @containous/traefik

@Russell-IO
Copy link
Contributor

LGTM 👍

Copy link
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐻

@vdemeester vdemeester merged commit e1ed8b7 into traefik:master Dec 21, 2016
@juliens juliens deleted the addprefix branch December 26, 2016 08:20
@ldez ldez added this to the 1.2 milestone Oct 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement a new or improved feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants