Best way to serve multiple jails, single IP?

Hello, thanks in advance for the help.

I have successfully implemented several jails running on multiple public IPs. This was easy.

Now, I am looking at hosting a bunch of websites that need only http and outgoing sendmail services. I hope to find some way to send each domain to an individual jail.

So it would be
Code:
public IP: 98.xxx.
domainA.com <192.0.0.1>
domainB.com <192.0.0.2>
ClientA <192.0.0.3>
etc.

What is the best way to implement this? Through a reverse proxy on 98.xxx, or using PF and NAT translation? Can it be done with IPFW?

From what I'm reading, it seems like the simplest solution would be using Nginx to reverse proxy the http requests, but then any outgoing mail is trapped.

I'm a bit stumped and would be grateful for any insight you may have.
Thank you!
Bill
 
You can use reverse proxies on an HTTP process running on the production IP that forwards everything for that domain to an internal IP'd jail. You can just NAT the sendmail or use mailertable setups to bounce through the external IP address.
 
BILLA, check out the port www/pound. It is a reverse proxy that I have used before. It's very easy to configure also. If you need an example config just PM me.
 
Thanks! I am very comfortable with Apache. I tried out Pound yesterday and was pleased at how easy it was to configure.
 
Back
Top