map subdirectory unless Passenger is used

Makes the subdirectory (rails_relative_url_root) work without having to change `config.ru`.

[Work Package #8421](https://www.openproject.org/work_packages/8421)