Serving multiple v-hosts with same rails app

2 views
Skip to first unread message

Jay

unread,
Dec 17, 2008, 8:34:11 PM12/17/08
to Phusion Passenger Discussions
Hi,

I am eager to try out Passenger, but I've run into a road-block. It
seems that I can't get by a problem I was able to solve by using
apache and proxying to mongrels.

I have one rails application which is running a mongrel cluster.

My vhosts then have a document root that serves up existing static
content and proxies all other stuff to the mongrel cluster. In this
case I have nothing in my rails application's /public directory. It's
all served from apache out of the vhost's documentroot.

My rails app might be in /home/jay/rails/app and my vhosts might point
to /home/jay/sites/site1/public and /home/jay/sites/site2/public

Is there a way to configure passenger to work with this sort of goal
in mind? Is there a way to configure Rails to send requests for
static things (like images, etc.) to a dynamic location based on
something like domain or subdomain? Can I do a trick with symlinking
my public directory elsewhere?

Thanks for your help,
Jay
Reply all
Reply to author
Forward
0 new messages