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

Relative url does not work #59

Open
germanyesid opened this issue Nov 26, 2017 · 1 comment
Open

Relative url does not work #59

germanyesid opened this issue Nov 26, 2017 · 1 comment

Comments

@germanyesid
Copy link

I set this in application.rb
config.middleware.insert(0, Rack::ReverseProxy) do
reverse_proxy_options preserve_host: false
reverse_proxy_options replace_response_host: true
reverse_proxy %r{^/blog(/.*)$} , 'http://localhost:8089$1'
end

the initial path works fine, but when I try to navigate to a relative address, the rule is lost and I get the following error.
No route matches [GET] "/ path"
note that it points to the root and not the path established in the rule.

What can I do to solve this?

sorry for my bad English

@masciugo
Copy link

masciugo commented Dec 6, 2017

@germanyesid any news on this?

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

2 participants