Multiple sites with Mongrel & Pound

I’m having trouble getting this to work.

I have two domains that I’d like to host from the same machine, using
Mongrel and Pound.

/etc/pound.cfg is as follows:

ListenHTTP
Address 0.0.0.0
Port 80
Service
HeadRequire “Host: .www.linuxlooney.com.
BackEnd
Address 127.0.0.1
Port 8000
End
BackEnd
Address 127.0.0.1
Port 8001
End
BackEnd
Address 127.0.0.1
Port 8002
End
End

Service
HeadRequire “Host: .www.employedorfree.com.
BackEnd
Address 127.0.0.1
Port 9000
End
BackEnd
Address 127.0.0.1
Port 9001
End
BackEnd
Address 127.0.0.1
Port 9002
End
End
End

Previous to my attempts to start the second site, linuxlooney.com ran
fine… it is a SimpleLog blog. Now when I attempt to start them, both
sites will start, but I get the generic “You’re riding the Rails” screen

on both URLs.

What I did was to use Zed’s HOWTO for Pound at
http://mongrel.rubyforge.org/docs/pound.html and combine the relevant
parts
with Robby’s HOWTO for doing multiple sites →
http://docs.planetargon.com/wiki/show/Pound+and+Mongrel

I’m all ears… because I’m lost at this point.

Thanks,

Aaron K.

Hello Aaron,

2006/8/22, Aaron K. [email protected]:

I have two domains that I’d like to host from the same machine, using
Mongrel and Pound.

I have the same kind of configuration as you have. Your syntax looks
correct, and my pound.cfg looks about the same as yours.

Some things to try:

  1. Use lynx or curl and view http://127.0.0.1:8000 and confirm that
    the right Rails application is fired. Do the same for port 9000.

  2. Configure Pound to serve only the second app. See if that works.
    Remove the HeadRequire and comment out the first app.

  3. Add only the HeadRequire for the second app.

After that, you should have a good idea where the problem lies.

Hope that helps !

François Beausoleil
http://blog.teksol.info/