-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Some frontend configuration is ignored when re-using same backend #2323
Comments
This will affect all middleware in this case, not just auth. Headers, rewrites etc, will all be affected. |
This just bit me as well. In my case, I had different frontends with different |
I opened a pull request (#3312) with a fix for this. Please provide feedback. There are certainly several ways to fix this. |
Same issue here, had this with redirects #3357 looking at your pr @arnested it seems like its an issue in the cache - the way i would think about that is that it would fix my issue too ( fixing them all at once, it seems not aspect bound with your fix ). Thanks for your work, looking forward to have that one merged :) |
Do you want to request a feature or report a bug?
Bug
What did you do?
When two frontends are using the same backend, only the first processed frontend is able to set settings like basicAuth or whitelistSourceRange.
I would like to use multiple frontends to apply different behaviour based on the Path of the URI.
A simple test scenario:
Two frontends with a different PathPrefix but using the same backend
frontend website-a:
frontend website-b:
backend app:
A short investigation in Traefik's code reveals the following:
server/server.go:
It seems frontend specific settings are skipped because the backend is already configured.
When I duplicate the backend configuration to app2 and configure app2 as a backend on website-b the configuration works as expected.
What did you expect to see?
In case of basic authentication defined on two frontends using the same backend:
What did you see instead?
In case of basic authentication defined on two frontends using the same backend:
Output of
traefik version
: (What version of Traefik are you using?)Traefik 1.4.0
What is your environment & configuration (arguments, toml, provider, platform, ...)?
The text was updated successfully, but these errors were encountered: