[Mongrel] Multiple rails apps with Mongrel

carmen
2006-09-07T21:12:46Z

On Thu Sep 07, 2006 at 04:06:05PM -0500, zer0halo wrote:
> I''m trying to set up several different Rails apps on the same
domain, each
> one running Mongrel. After reading all of the documentation, it''s
fairly
> clear how to use subdomains - create several Apache virtual hosts, each of
> which has a different ProxyPass and ProxyPassReverse command to redirect
> from different ports (ie, 3000, 3100), and then have each Mongrel instance
> (or cluster) set to the corresponding port (3000, 3100). [If this theory is
> incorrect, please let me know!]
>
> However, what I''m trying to acheive is to host them all under the
same
> domain. In othe words, I would like to have
>
> www.domain.com/app1
> www.domain.com/app2

maybe you can hack the mongrel_rails script to setup a rails handler for each
app? camping does it this way anyways