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

handling redirects #2

Open
dtenenba opened this issue Nov 15, 2019 · 0 comments
Open

handling redirects #2

dtenenba opened this issue Nov 15, 2019 · 0 comments

Comments

@dtenenba
Copy link

I am running n2proxy -backend http://localhost:8000 -port 5000

Hitting the / endpoint of that backend redirects (with a 301 or 302) to
http://localhost:8000/login. Unfortunately if I go to http://localhost:5000 I end up with
http://localhost:8000/login in my browser address bar. What I want is
http://localhost:5000/login. Do you know how to fix this?

Seems I need to intercept the Location header and rewrite it.

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