natd & virtual hosting
ciscogeek at bgp4.net
Mon Mar 22 10:54:21 PST 2004
> I'm trying to host a few services under a few different domain names and
> need to be running multiple webservers to do it (apache 1.3x and 2.x).
> If I have a single IP, will nat with FreeBSD 4.9 allow me to separate
> requests by domain name even if they share an IP?
NAT works with IP addresses. Why can't you just use Virtual Hosts in
Apache? Do you really need to run both versions? If so, what you need
to do is something like this:
Apache 1.3x runs on port 80
Apache 2.x runs on port 8080
redirect 192.168.5.1:80 to 18.104.22.168:80
redirect 192.168.5.2:80 to 22.214.171.124:8080
More information about the freebsd-stable