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 option to not rewrite Host header in reverse-proxy #57

Open
tbroyer opened this issue Mar 23, 2016 · 0 comments
Open

Add option to not rewrite Host header in reverse-proxy #57

tbroyer opened this issue Mar 23, 2016 · 0 comments

Comments

@tbroyer
Copy link

tbroyer commented Mar 23, 2016

See #56 for the context. My downstream server doesn't look at X-Forwarded-Host, expecting the Host header to be the original one received by the reverse proxy (HAProxy in our case in production).

I understand that others proxying to a live server with virtual hosts won't want that behavior, so it should be an option, and preferably per-route.

Maybe add a notation like prefixing a URL with + (or another character) will preserve the req.Host instead of rewriting it to target.Host?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant