Add this line to your routes.rb.
ActionController::AbstractRequest.relative_url_root = "/app1"
Then all your links should work. Since mod_rewrite is rewriting all
the URLs for static content everything should work fine.
Taken from http://jarednevans.typepad.com/technoblog/2006/03/
how_to_setup_mu.html
Luke Amdor
On Jun 20, 2006, at 9:28 PM, Vincent Riff wrote:
> I''m trying to achieve the following:
> Having a development server that runs multiple rails apps running
> wihout
> creating a different virtual host for each apps.
> my documentRoot is therefore /var/rails for my whole config
> http://myserver/app1/controller/action -> (/var/rails/app1/...)
> http://myserver/app2/controller/action -> (/var/rails/app2/...)
> I''m under apache 1.3
> mod rewrite seems to work since I''m able to capture app1 and
> redirecting
> to the proper folder. But I''m stuck after that.
>
> Has anyone manage to have this kind of configuration working and if so
> how?
>
> Tia for any help.
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url :
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060621/3941c92f/PGP.bin