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
Trailing slash is not being removed before request is forwarded to backend #4247
Comments
Started looking into this, complete beginner with regards to Go but will try to at least create a failing test case here: https://github.com/martinklepsch/traefik/tree/fix-4247. If you want to help me contribute/get this done, I'm also @martinklepsch in the Traefik Slack. |
Workaround for traefik/traefik#4247 Usually Traefik and other reverse proxies handle this.
Workaround for traefik/traefik#4247 Usually Traefik and other reverse proxies handle this.
Workaround for traefik/traefik#4247 Usually Traefik and other reverse proxies handle this.
Workaround for traefik/traefik#4247 Usually Traefik and other reverse proxies handle this.
Workaround for traefik/traefik#4247 Usually Traefik and other reverse proxies handle this.
Workaround for traefik/traefik#4247 Usually Traefik and other reverse proxies handle this.
Workaround for traefik/traefik#4247 Usually Traefik and other reverse proxies handle this.
I understand that "keepTrailingSlash"" is not relevant anymore in Traefik V2 right? |
Hello, This issue was for the v1, but as described in our deprecation notices the v1 is not supported anymore. |
Do you want to request a feature or report a bug?
Bug
What did you do?
I used this
traefik.toml
and started Traefik usingtraefik --configFile=traefik.toml
.I started the referenced backend using:
I used curl to retrieve the
ping
file via Traefik, intentionally adding a trailing slash:What did you expect to see?
As I understand
keepTrailingSlash
with it's default value offalse
requests with a trailing slash should be stripped of trailing slashes before being forward to the backend.If this is working as intended then the bug might be in the documentation :)
What did you see instead?
The request arrived at the backend containing the trailing slash. Causing a 404 response.
Traefik Version
Reported as
1.7.4
in/dashboard
. Installed viabrew install traefik
. Wanted to use a Docker image but couldn't get host networking set up.Environment
see above
Debug Logs
http://sprunge.us/qPdLm4
The text was updated successfully, but these errors were encountered: