Well, the other thing you can do is set up a NameVirtualHost and then use
Apache to proxy to the internal machine using the ProxyPass and
ProxyPassReverse directives. Of course this involves some load on the the
machine doing the proxying, but it's usually not too bad.
-----Original Message-----
From: Ryan Speed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 12:01 PM
To: Alexandru Balan
Cc: Paul Nevin; [EMAIL PROTECTED]
Subject: Re: pf or apache redirect?
Sounds like he wants to re-direct to an alternate host with a non public ip
address, Apache can't do this. However with the "NameVirtualHost" directive
(http://www.apache.org/docs-2.0/mod/core.html#namevirtualhost) he could have
multiple domains resolve to the one ip and host them all from the same
machine.
On Tue, 11 Sep 2001, Alexandru Balan wrote:
> couldn't you add a directive in apache where when you recieve requests for
www.clientdomain.com httpd will direct those to another directory on the
same machine as the main website
>
> On Fri, 10 Aug 2001 13:02:49 +0800
> "Paul Nevin" <[EMAIL PROTECTED]> wrote:
>
> > Is there a way to redirect http requests within ipf/pf/iptables to an ip
> > within a private network range? Or is this something that is usually
> > done within Apache VirtualHosts directives? Confused? So am I!
> >
> > I am trying to build a web server (http://clientdomain.com) within my
> > LAN. My own registered domain (http://mydomain.com) has had a CNAME
> > entry registered for clientdomain.com pointing to mydomain.com. In this
> > way I hope to somehow redirect internet requests for
> > http://clientdomain.com to my gateway/firewall/router. The gateway
> > would forward these requests to the customer's www server within the
> > private address space of the LAN (192.168.1.x).
> >
> > The catch is I only have one registered "real" ip and that is already in
> > use by my official web site. Re-directs based only on http requests
> > would be the only way I can see to make this work.
> >
> > I can not find any information on doing this with ipf/pf so I assume
> > there must be some sort of Apache directive that can do this within my
> > existing web server.
> >
> > Help appreciated.
>
>
> --
> Alexandru Balan
> Technical Support
--
Ryan Speed - Network Administrator
Datawave Systems <http://datawave.ca>