the accelerator is useful

From: Miguel A.L. Paraz <[email protected]>
Date: Sat, 27 Jul 1996 23:49:28 +0800 (GMT+0800)

Stephen R. van den Berg wrote:

> Ok, further exploring the boundaries: what's with the accelerator
> functionality? Do many people use it? I would personally think that
> with more and more web pages becoming generated-on-the-fly and servers
> getting faster, the need for the accelerator functionality starts to
> diminish?

Nope, don't just think CPU, think bandwidth. Squid can mirror ANY
web site in the planet - here's how I use it. I have a colocated web
server in the US, with a T1 connection, that replicates my Apache-
based web server here in the Philippines, with a 64K connection.
Accesses to www.iphil.net are simply fed to this line in my Apache
configuration:

ScriptAlias / /usr/local/etc/httpd/cgi-bin/redirector/

Where redirector is:

#!/usr/bin/perl
print "Location: http://" .
    ((($ENV{"REMOTE_ADDR"} =~ /^203\.176/) &&
      $ENV{"REQUEST_METHOD"} ne "POST") ?
      "iphil.net" : "www.us.iphil.net") . $ENV{"PATH_INFO"} . "\n\n";

Where 203.176.* is my local IP (well I currently do 203.176.0.0/20, but
there's little point right now to check that exactly); www.us.iphil.net
is the US server running Squid; and iphil.net is the real web server
over here.

-- 
miguel a.l. paraz <map@iphil.net> / iphil communications / PGP keyID 0x43F0D011
Received on Sat Jul 27 1996 - 08:51:30 MDT

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