Date: Wed, 24 Mar 2004 01:42:43 +0100 From: Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> To: freebsd-stable@freebsd.org Subject: Re: natd & virtual hosting Message-ID: <20040324014243.75839158.torfinn.ingolfsen@broadpark.no> In-Reply-To: <4060D258.8010601@gopostal.ca> References: <405F2344.4050309@gopostal.ca> <405F3657.7080005@bgp4.net> <405F3B3E.6040404@gopostal.ca> <20040322194820.GA21648@happy-idiot-talk.infracaninophile.co.uk> <4060D258.8010601@gopostal.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 23 Mar 2004 16:12:08 -0800
"Eli K. Breen" <eli@gopostal.ca> wrote:
> Just to wrap up this thread (although it has left the realm of
> FreeBSD-specific)
>
> This worked perfectly! (Apache2 only)
[.. lots of info about the Proxy module snipped...]
I don't know if this is 1.3 specific, but I use this solution with
Apache 1.3.x:
<VirtualHost *>
ServerName somename.domain.example
RewriteEngine on
RewriteRule ^/$ http://server/ [P]
</VirtualHost>
where 'server' is a dns-resolvable name (or ip address).
In another, the RewriteRule line looks like this:
rewriteRule (.*) http://192.168.1.1/$1 [P]
at the moment, I can't remember why this one is different.
Also, I can't remember where I first found this mentioned (except that
it is documented at the Apache web site).
HTH
--
Torfinn Ingolfsen,
Norway
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040324014243.75839158.torfinn.ingolfsen>
