[Mongrel] VirtualHost like in the Apache-PHP world

James Tucker jftucker at gmail.com
Thu Mar 25 17:04:38 EDT 2010


On 25 Mar 2010, at 14:52, Jonathan Rochkind wrote:

> Do you want a seperate app per domain, or do you want one app handling multiple domains?
> 
> If you want a seperate app per domain, I think you'd need a mongrel per domain too, I don't see any other way to do it.

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. 

> 
> If you want one app that handles multiple domains, than it's up to you to write an app that can do that, and it's not a mongrel issue.
> 
> Jonathan
> 
> Nagy Tamás wrote:
>> Thank you Hassan, James!
>> 
>> So i will need one mongrel per domain. I think I can't carry out this because I have a thousands of domains.
>> 
>> I think i will try the rack-thing James mentioned. I assume i can't run individual ruby script files but whole apps, one app for one domain.
>> 
>> ooohh so hard.. :)
>> 
>> 
>> ________________________________________________________
>> Újdonság! Megérkezett a RIGHT GUARD férfi testápolási termékcsalád! Most 25% kedvezménnyel! Akár 48 órás hatásos védelem a testszag ellen! <http://ad.adverticum.net/b/cl,1,73468,1598288,1592431/click.prm>
>> 
>>  
> _______________________________________________
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-users



More information about the Mongrel-users mailing list