[Mongrel] VirtualHost like in the Apache-PHP world

Hassan Schroeder hassan.schroeder at gmail.com
Thu Mar 25 17:43:32 EDT 2010


On Thu, Mar 25, 2010 at 2:04 PM, James Tucker <jftucker at gmail.com> wrote:

> map "http://domain1.com/" do
>  run App1.new
> end
>
> map "http://domain2.com/" do
>  run App2.new
> end
>
> I see a way to do it.

OK, I've never  used Rack as a standalone entity; how exactly does
this work in a Rails context?

Say, I have a directory structure like

  /webapps/app1
  /webapps/app2

where both app1 and app2 are Rails apps.

Where does the above code go, and what exactly would I be invoking?

-- 
Hassan Schroeder ------------------------ hassan.schroeder at gmail.com
twitter: @hassan


More information about the Mongrel-users mailing list