Multiple rails sites, one domain

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


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.