Re: [Mongrel] VirtualHost like in the Apache-PHP world

2010-03-26 Thread Nagy Tamás
Ok, then it will be Rack. anyway, i want to use the whole ruby as php: example.tld/rubyscript1.rbexample.tld/rubyscript2.rbexample2.tld/rubyappexample2.tld/rubyapp/rubyscript.rb where also works any Rails app.. http://ad.adverticum.net/b/cl,1,73468,1598288,1592431/click.prm"; target="_blank">_

Re: [Mongrel] VirtualHost like in the Apache-PHP world

2010-03-25 Thread Hassan Schroeder
On Thu, Mar 25, 2010 at 2:04 PM, James Tucker 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 ha

Re: [Mongrel] VirtualHost like in the Apache-PHP world

2010-03-25 Thread James Tucker
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

Re: [Mongrel] VirtualHost like in the Apache-PHP world

2010-03-25 Thread Jonathan Rochkind
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. If you want one app that handles multiple domains, than it's up to you to write an

Re: [Mongrel] VirtualHost like in the Apache-PHP world

2010-03-25 Thread James Tucker
On 25 Mar 2010, at 14:34, 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. That sounds like a recipe for out of memory errors and cross-application errors taking down the whole set a

Re: [Mongrel] VirtualHost like in the Apache-PHP world

2010-03-25 Thread Nagy Tamás
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.. :)

Re: [Mongrel] VirtualHost like in the Apache-PHP world

2010-03-25 Thread James Tucker
On 24 Mar 2010, at 22:13, Hassan Schroeder wrote: > 2010/3/24 Nagy Tamás : > >> 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

Re: [Mongrel] VirtualHost like in the Apache-PHP world

2010-03-24 Thread Hassan Schroeder
2010/3/24 Nagy Tamás : > 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 > example

Re: [Mongrel] VirtualHost like in the Apache-PHP world

2010-03-24 Thread Nagy Tamás
Thank you, Jonathan! 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 th

Re: [Mongrel] VirtualHost like in the Apache-PHP world

2010-03-24 Thread Jonathan Rochkind
You do it all in Apache. Typical way to deploy mongrel is fronted with an Apache reverse proxy. You need to set up everything in Apache, and have the right requests proxied to the right mongrel. It's all about apache, no config in Mongrel. You may also want to consider mod_rails/passenger ins