Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#1946

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?

Reported by Nathan de Vries · February 12th, 2009 @ 12:21 AM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Hongli Lai
    Hongli Lai

    Yeah, it's to support thread-safety. I consider this to be a Phusion Passenger issue, not a Rails issue.

    March 16th, 2009 @ 01:56 PM

  2. Xavier Noria
    Xavier Noria

    And in addition relative_url_root needs to be fixed:

    http://rails.lighthouseapp.com/p...

    March 16th, 2009 @ 03:22 PM

  3. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to invalid

    Passenger issue. We have other tickets to track fixes to relative_url_root.

    May 16th, 2009 @ 06:01 PM

  4. bingbing