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

The proxy is redirecting to the root domain of the forwarded address. #21

Open
jonathan-mui opened this issue Aug 22, 2012 · 4 comments

Comments

@jonathan-mui
Copy link

I have a domain "https://www.example.com".
I've setup my config.ru to do the simple forward shown in the wiki

reverse_proxy /^\/blog(\/*.*)$/, 'http://myblog.tumblr.com$1'

However, when I try to visit "https://www.example.com/blog", it redirects to "https://www.tumblr.com". Is this expected?

@jaswope
Copy link
Owner

jaswope commented Aug 24, 2012

Check the Location header in the redirect you are receiving. rack-reverse-proxy does not rewrite those, and if a full URL is in the Location header (and not a path), you'll get this issue.

@fearenales
Copy link

I'm facing this issue. My Location header is a full URL.
How can I make my app response only the path for this redirect?

@kurianm
Copy link

kurianm commented Jun 11, 2015

I am also facing this issue. What shall i do to avoid this issue.

Thanks for help in advance

@zharikovpro
Copy link

For anyone having same issue, as I do:
use reverse_proxy_options replace_response_host: true, along with other options.

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

5 participants