cannot set ENV['RAILS_RELATIVE_URL_ROOT']

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