[Ruby] Multiple Domains with Mongrel + Apache

Jordan Isip jordanisip at yahoo.com
Fri Mar 2 13:01:56 PST 2007


Hi Zed,

Great recommendations!  I decided to go with NGINX and set up the "virtual hosts" for multiple domains and mongrel_clusters without much hassle!  

FYI, I used these links for guidance:
http://blog.integralimpressions.com/articles/2006/08/30/nginx-the-front-end-solution-for-rails-deployment
http://brainspl.at/nginx.conf.txt

Thanks again for your suggestions!

Jordan

"Zed A. Shaw" <zedshaw at zedshaw.com> wrote: Hey Jordan, sorry I missed this first time through...

On Thu, 1 Mar 2007 23:53:24 -0800 (PST)
Jordan Isip  wrote:

> For achieving purposes:  After many hours I figured out my problem. I needed to uncomment "NameVirtualHost *:80" in my httpd.conf....*sigh*....
> 
> So in the end my virtual host section in my httpd.conf looked like this:

I'm not much of an apache guy.  I've always hated the configuration
file, so these days I use nginx.  Nginx is very nice and very stable.
You should give that a whirl.

Otherwise, your config looks good, minus the static page caching
features you might want.

> 
> Welp, onto configuring Mongrel clusters....

For the mongrel clusters, you'll want to make sure that
any /etc/init.d/ (or /etc/rc.d/) script you make clears out the
log/*.pid files if you reboot.

I'd also recommend that you go buy:

http://www.amazon.com/Linux-Administration-Handbook-2nd-Nemeth/dp/0131480049/ref=pd_bbs_sr_1/002-9838944-8877668?ie=UTF8&s=books&qid=1172840339&sr=8-1

For a good manual on generic Linux administration.

-- 
Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.zedshaw.com/
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book
http://mongrel.rubyforge.org/
_______________________________________________
Ruby at zenspider.com - Seattle.rb non-commercial list
http://www.zenspider.com/seattle.rb
http://www.zenspider.com/mailman/listinfo/ruby



More information about the Ruby mailing list