waterlink / rack-reverse-proxy

A Reverse Proxy for Rack
MIT License
196 stars 52 forks source link

Relative url does not work #59

Open germanyesid opened 6 years ago

germanyesid commented 6 years ago

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 commented 6 years ago

@germanyesid any news on this?