Topic: Configure Apache to host 2 sites on 2 servers through 1 firewall.

I have a firewall that forwards all port 80 requests to my server s1.myserver.com.

I have multiple domains (myserver.com & theirserver.com) pointing to my global IP address which is on the WAN side of my firewall.

I have this working using just virtual domains on a single (s1.myserver.com) server.

I have recently added a jail VM (s2.mydomain.com) setup to this server and would like to move my theirserver.com domain traffic inside the jail with it's own dedicated web server.

My question is: How (if possible) do I configure apache on my s1.myserver.com so that it handles www.myserver.com traffic itself but passes traffic destined for www.theirserver.com to the jail VM and it's own apache server without the client knowing about this configuration?

I looked at the reverse proxy features but got lost in the weeds smile . (this is a hobby for me and not my business).

FREEBSD 7-STABLE

Thanks
Krreagan

Re: Configure Apache to host 2 sites on 2 servers through 1 firewall.

Wont the issue be that both instances of Apache will try to bind to port 80?

Perhaps you should move both domains to the jail and run them from there

"UBER" means I don't drink the coffee... I chew the beans instead
             -- Copyright BSDnexus