Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2002 23:05:13 -0800
From:      Steve Wingate <steve@velosystems.net>
To:        "Donnie Jones" <donniejones18@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Two domains, only one real IP address.
Message-ID:  <20020105230513.77e720e9.steve@velosystems.net>
In-Reply-To: <20020102080755.77ff04f4.donniejones18@yahoo.com>
References:  <20020102080755.77ff04f4.donniejones18@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2 Jan 2002 08:07:55 -0500
"Donnie Jones" <donniejones18@yahoo.com> wrote:

> 
> I have two domains and two httpd servers on my internal LAN.  My network is set up where I have the real IP address going to the FBSD-4.4 gateway then to an ethernet switch, and onto the two separate httpd servers (the httpd servers IP's are 192.168.0.10 and 192.168.0.11).
> 
> I would like for my FBSD gateway to redirect, route, or somehow send the httpd requests from each domain to their respective httpd server on the internal LAN.  Also, I wouild prefer to not have to run apache on the FBSD gateway, so I think that may rule out "Virtual Hosts" on the gateway computer.
> 
> I am unsure how to get the FBSD gateway to filter the httpd requests from the two separate domains to be sent to the individual httpd servers on the internal LAN?
> 
If you want to host two domains on one IP address you're going to need to put them on one server and use virtual hosting. The gateway will have no way to separate the traffic based on domain name, since it's filtering solely on IP address and port. I'm ASSuming this since you neglected to mention what firewall software you're using, but I'll ASSume it's ipfw or ipfilter. 
The apache server doesn't have to be run on the gateway box, but you'll have to either a) NAT them both to the same box or b) run them on separate ports, say 80 & 8080. 
I run 3 domains on a Sparc 20 behind an OpenBSD/ipfilter gateway in my apt. 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020105230513.77e720e9.steve>