Hello,
I''m also deciding between Apache and nginx. Have you come across this
post:
http://blog.jordanisip.com/2007/6/27/rimuhosting-vps-nginx-mongrel-clusters-multiple-domains-a-happy-jordan
The author switched to nginx after struggling with Apache. I haven''t
done it myself but you might find it useful.
- Anthony
On Nov 7, 7:26 pm, giorgio
<george.pever...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have been using an Apache setup to proxy to two different Rails apps
> for two different domain names mapped to the same ip address,
ie.www.web1.comgoes to app1 andwww.web2.comgoes to app2. The Apache
> config is roughly as follows, and the mongrels are started with the
> prefix option ie. /app1 on 5000 and /app2 on 6000
>
> <VirtualHost *:80>
> ServerNamewww.web1.com
> DocumentRoot "${path}/www/web1"
>
> ProxyPass /imageshttp://127.0.0.1:5000/app1/images
> ProxyPass /app1http://localhost:5000/app1
> ProxyPassReverse /app1 http://localhost:5000/app1
> </VirtualHost>
>
> <VirtualHost *:80>
> ServerNamewww.web2.com
> DocumentRoot "${path}/www/web2"
>
> ProxyPass /imageshttp://127.0.0.1:6000/app2/images
> ProxyPass /app2http://localhost:6000/app2
> ProxyPassReverse /app2 http://localhost:6000/app2
> </VirtualHost>
>
> My question is that I want to give haproxy a try and wondered if I
> could do this sort of thing with haproxy itself or whether I still
> require apache?
>
> People have mentioned nginx but after struggling with Apache
> httpd.conf for a while I am loath to go back to square one! Is nginx
> easier or harder to do this sort of stuff than Apache?
>
> Cheers
> Giorgio
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---