This project is archived and is in readonly mode.
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
-
Hongli Lai March 16th, 2009 @ 01:56 PM
Yeah, it's to support thread-safety. I consider this to be a Phusion Passenger issue, not a Rails issue.
-
CancelProfileIsBroken May 16th, 2009 @ 06:01 PM
- State changed from new to invalid
Passenger issue. We have other tickets to track fixes to relative_url_root.
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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>