Cannot set ENV['RAILS_RELATIVE_URL_ROOT']

i am on lighttpd now, and i cannot set
cannot set enviroment variable:

i added this line to enviroment.rb, but it doesn not work!!

ENV[‘RAILS_RELATIVE_URL_ROOT’] = ‘something’

links on my page are ok, but all links to images, stylesheets etc are
broken, (because relative_url_root returns ‘’), what else can I do?

thanks. f.

fero wrote:

i am on lighttpd now, and i cannot set
cannot set enviroment variable:

i added this line to enviroment.rb, but it doesn not work!!

ENV[‘RAILS_RELATIVE_URL_ROOT’] = ‘something’

links on my page are ok, but all links to images, stylesheets etc are
broken, (because relative_url_root returns ‘’), what else can I do?

thanks. f.

Maybe you can set the

Reset the asset host

ActionController::Base.asset_host = Proc.new do |source, request|
“#{request.protocol}#{request.host_with_port}”
end

On Thu, Feb 8, 2007 at 3:48 AM, fero [email protected]
wrote:

i am on lighttpd now, and i cannot set
cannot set enviroment variable:

i added this line to enviroment.rb, but it doesn not work!!

ENV[‘RAILS_RELATIVE_URL_ROOT’] = ‘something’

links on my page are ok, but all links to images, stylesheets etc are
broken, (because relative_url_root returns ‘’), what else can I do?

See
http://rails.lighthouseapp.com/projects/8994/tickets/1946-setting-a-relative-root-url-via-a-web-server-not-possible-anymore

You must set config.action_controller.relative_url_root = ‘something’
now instead of using the environment variable.

jeremy