So I found out I can set
ActionController::AbstractRequest.relative_url_root = “/rails”
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?