[Mongrel] VirtualHost like in the Apache-PHP world

James Tucker jftucker at gmail.com
Thu Mar 25 04:29:35 EDT 2010

On 24 Mar 2010, at 22:13, Hassan Schroeder wrote:

> 2010/3/24 Nagy Tamás <frikazojd at freemail.hu>:
>> but i'd like to try out Mongrel..
>> so, I set the apache with mod_proxy.. i think it should forward the request
>> to mongrel, localhost:3000.. but how will the mongrel figure out where are
>> the ruby apps? it will get a request for example.tld or example6.tld and
>> example4.tld at the same time.. .. ??
> You need to have at least one mongrel instance per domain, and set
> up your httpd proxy accordingly.

Actually, you can use rack to do it:

map "http://domain1/" do
  run App1

map "http://domain2/" do
  run App2

Then specify multiple vhost aliases in the apache proxy configuration

> -- 
> Hassan Schroeder ------------------------ hassan.schroeder at gmail.com
> twitter: @hassan
> _______________________________________________
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3679 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/mongrel-users/attachments/20100325/6d3f12c4/attachment.bin>

More information about the Mongrel-users mailing list