Hi,
I am using webrick and want my application not be available on
http://localhost:3000/ but http://localhost:3000/rails.
So I found out I can set
ActionController::AbstractRequest.relative_url_root = “/rails”
in environment.rb.
This works for controllers without further modifications. But for the
static files, I have to put a “rails” directory into the public
directory, and move my static files in there. This was the only way I
found to solve this. But I imagine it should be possible to keep the
original public structure, but tell webrick to serve that in /rails
instead of /.
Is this possible?
Henning