Forum: Ruby on Rails Multiple rails sites, one domain

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
paul (Guest)
on 2005-11-29 00:14
(Received via mailing list)
Dear list:

Lighttpd just released a new version 1.4.8. Following the tutorial here
I have got that part set up correctly. (ie, and point where they should.) However, all links inside
rails app that were generated by rails using link_to,
etc point to the wrong place. For example,

<%= stylesheet_link_tag 'style' %>

gives me <a href="/stylesheets/style.css" ...  which doesnt exist; I
href="/app1/stylesheets/style.css" . I'm pretty sure this is done
somehow in
routes.rb, but I'm not sure how, and my experiments at best dont solve
it and
at worst cause lighty to jump to 100% cpu usage and has to be HUP'd. I
find much in the docs that is useful either. #rubyonrails also had many
useful suggestions, but with the same effects. I was hoping some of the
enlightened souls on this list could point me in the right direction.

Looking at the code for Actionview::TagHelper, I cant see how the href
would get the data out of routes.rb, so maybe im going about this the

Paul (Guest)
on 2005-11-29 00:23
Heh, reading the thread immedietly previous this one provides the
put :

ActionController::AbstractRequest.relative_url_root = "/app"

In one of the environment files. Perhaps this should be documented
somewhere? is incorrect, and states this only applies to
apache, as well.
This topic is locked and can not be replied to.