Apache VirtualHosts won't help you there unless the customer's web site is
hosted on the same machine. ipf probably won't do the job either seeing it
does things at a lower level than what you want.
Possibly look into using Apache with mod_proxy (and maybe mod_rewrite)
installed. You can then point the customers site(s) at the single external
IP, and use Apache to proxy the requests to the internal server based on
the requested site.
Regards,
Steve Micallef
On Fri, 10 Aug 2001, Paul Nevin 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.
>