Skip to content

Relative url does not work #59

Description

@germanyesid

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions