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

Is it possible to show contents from the URL with sub directories? #56

Open
goodpic opened this issue Aug 28, 2015 · 0 comments
Open

Is it possible to show contents from the URL with sub directories? #56

goodpic opened this issue Aug 28, 2015 · 0 comments

Comments

@goodpic
Copy link

goodpic commented Aug 28, 2015

Thank you for this great gem.
I would like to show the contents from a URL with subdirectory at the http://example.com/ (Rails app).
I configured config/application.rb as following, but this does not work.

module MyRailsApp
  class Application < Rails::Application
    config.middleware.use Rack::ReverseProxy do
      reverse_proxy_options preserve_host: true
      reverse_proxy /^\/$/, 'http://example-2.com/example-page'
    end
  end
end

But this configuration only shows "http://example-2.com/" not "http://example-2.com/example-page”.
Is this usage supported?

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

1 participant