After failed attempts with Passenger (see my other question), I managed to get rails running via a reverse proxy in a subfolder. I added the lines
config.relative_url_root = "/App"
config.action_controller.relative_url_root = "/App"
to my environment. Now I can access my rails project under www.mySite.com/App. The problem is that the links /paths dont add the prefix "/App". So a link to "users" looks like
www.mySite.com/users
instead of www.mySite.com/App/users
.
How can I change this?
At least according to http://edgeguides.rubyonrails.org/configuring.html#deploy-to-a-subdirectory-relative-url-root I did everything correct.
rake routes
in your terminal and post the output here? – Meneses