Date: Mon, 22 Mar 2004 14:59:56 -0800 From: "Eli K. Breen" <eli@gopostal.ca> To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: freebsd-stable@freebsd.org Subject: Re: natd & virtual hosting Message-ID: <405F6FEC.2030809@gopostal.ca> In-Reply-To: <20040322194820.GA21648@happy-idiot-talk.infracaninophile.co.uk> References: <405F2344.4050309@gopostal.ca> <405F3657.7080005@bgp4.net> <405F3B3E.6040404@gopostal.ca> <20040322194820.GA21648@happy-idiot-talk.infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Aha! I'll give that a go. Thank you. -E- Matthew Seaman wrote: >>>>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? >> >>Yes. Unfortunately. (Slash does not run on 2.x, many of the sites >>require 2.x) > A good trick is to set up all of the virtual hosts you need in the > server listening on port 80 (presumably this is your apache-1.3.x > server), and then use mod_proxy to fetch the content from the server > on port 8080 (presumably the apache-2.0.x server). Something like: > > <VirtualHost *:80> > ServerAdmin webmaster@example.com > ServerName www8080.example.com > DocumentRoot "/usr/local/www/www8080.example.com/" # Not sure if this > # is necessary > > <IfModule mod_proxy.c> > ProxyPass / http://www8080.example.com:8080/ > ProxyPassReverse / http://www8080.example.com:8080/ > </IfModule> > </VirtualHost> > > Cheers, > > Matthew >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?405F6FEC.2030809>