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.
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