On Tuesday, 2002-09-17 at 23:54:17 +0200, milx wrote:

> I want to redirect any traffic coming in on port 80 on eth0 for
> foo.mydomain.com to Web1, and any traffic coming in on port 80 on eth0
> for bar.mydomain.com to Web2.

Name based virtual hosts work because the browser sends a header line
("Host:") that indentifies the virtual host. This is what IPFilter can't
do.

You need a proxy server to do that. Squid in httpd accelerator mode can
do that. Have a look at this URL for a similar application of squid:
  
http://perl.apache.org/docs/1.0/guide/scenario.html#Running_Two_webservers_and_Squid_in_httpd_Accelerator_Mode

(No, I've never done this, only read about it.)

HTH,
Lupe Christoph
-- 
| [EMAIL PROTECTED]       |           http://www.lupe-christoph.de/ |
| Big Misunderstandings #6398: The Titanic was not supposed to be        |
| unsinkable. The designer had a speech impediment. He said: "I have     |
| thith great unthinkable conthept ..."                                  |

Reply via email to