I worked by setting up my reverse proxy and configuring my rails as follows. This is my corresponding apache file:
<VirtualHost *:80> DocumentRoot /path/to/App/public ProxyPass /App http://127.0.0.1:9292/App ProxyPassReverse /App http://127.0.0.1:9292/App </VirtualHost>
My config.ru looks like this:
require ::File.expand_path('../config/environment', __FILE__) map '/App' do run Rails.application end
The specified environment variables are set in /config/environment.rb. I am not sure if they are still needed:
config.relative_url_root = "/App" config.action_controller.relative_url_root = "/App" ENV['RAILS_RELATIVE_URL_ROOT'] = "/App" ENV['ROOT_URL'] = "/App"
source share