Re: Accelerating multiple webs

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 29 Mar 1998 17:04:10 +0200

squid.conf:
httpd_accel virtual 80
httpd_accel_uses_host_header on (if you are using Host: based virtual
servers as well)
redirector_program /path/to/your/redirector.pl

redirector.pl:
#!/usr/bin/perl
$|=1;
while(<>) {
  s%1.2.3.4%www2.web1.com%;
  s%1.2.3.5%www2.web2.com%;
} continue {
  print;
}

where 1.2.3.4 and 1.2.3.5 is the IP accelerated IP addresses (the ones
used on the Squid box).

The real web servers should be configured to use the names of the
accelerated ("real") addresses.

---
Henrik Nordström
Sparetime Squid Hacker
sascha schnitzler wrote:
> 
> Hi !
> 
> Just read Oskars Squid-Documentation. Couldn't get it.
> 
> How do I accelerate multiple Webs on one Linux-Box with multiple
> interfaces ???
> 
> The situation is the following :
> 
> www.web1.com should be the name of the first interface (say eth0)
> and www.web2.com should be the name of the second (eth0:0)
> 
> Squid is running on this box on port 80
> 
> On another box is apache running - this one has also two Interfaces
> www2.web1.com and www2.web2.com - lying behind a firewall and only
> accessible for squid.
Received on Sun Mar 29 1998 - 08:09:11 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:29 MST