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 proxy fix support for x-forwarded-prefix #1237

Closed
ilansh opened this issue Jan 15, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@ilansh
Copy link
Contributor

commented Jan 15, 2018

This header can be useful for apps where the root path is different behind proxy, for instance in my case using the traefik proxy - https://docs.traefik.io/basics/

@davidism

This comment has been minimized.

Copy link
Member

commented Jan 15, 2018

If the proxy is stripping the prefix and adding this header, we're supposed to detect this header and add it to the URL before matching happens?

@davidism

This comment has been minimized.

Copy link
Member

commented Jan 15, 2018

There are some other issues open about ProxyFix not supporting all the Forwarded headers (including the real Forwarded header). If you have time to create a PR that would be very helpful.

@ilansh

This comment has been minimized.

Copy link
Contributor Author

commented Jan 16, 2018

No problem, I'll try to make some time for a new PR.

@ilansh

This comment has been minimized.

Copy link
Contributor Author

commented Jan 16, 2018

As far as I understand, url matching is on the stripped urls (not adding the prefix from the header).
Url building adds the prefix to the returned url.

@davidism davidism closed this May 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.