This project is archived and is in readonly mode.

#1946 ✓invalid
Nathan de Vries

Setting a relative root URL via a web server not possible anymore

Reported by Nathan de Vries | February 12th, 2009 @ 12:21 AM | in 2.x

As of this commit, it is no longer possible for Mongrel/Passenger/... to set the RAILS_RELATIVE_URL_ROOT environment variable and have Rails automatically configure itself to prepend URLs with the relative URL. It now requires explicit configuration at the Rails level via config.action_controller.relative_url_root.

In the case of Passenger, this means that if you want to host a Rails application on a given path, you need to use the RailsBaseURI in Apache, and also modify the actual application configuration as well. There is an issue on the Passenger bug tracker detailing the issue.

Was there any particular reason for this change?

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>