Re: [squid-users] HTTP Accelerator

From: Preston Garrison <preston@dont-contact.us>
Date: Wed, 19 Dec 2001 01:59:54 -0700

Running Freebsd 4.3 w/ two striped 7200rpm ide drives, and 1gig of RAM. Its
a dual p3 1000mhz box.

The squid server is on one box, and the webserver is on another box. I
actually only am sending the image requests to the squid server, the html is
all taken from the real web server.

squid.conf:

cache_store_log none
cache_access_log /dev/null
cache_log /dev/null
client_persistent_connections on
server_persistent_connections on
cache_dir ufs /raid/squid/cache 20000 16 128
http_port 8080
httpd_accel_host 208.50.34.227
httpd_accel_port 80
acl all src 0.0.0.0/0.0.0.0
http_access allow all
cache_mem 400 MB
cache_access_log /dev/null
cache_log /usr/local/squid/logs/cache.log
cache_store_log /dev/null
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
icp_access allow all
miss_access allow all
refresh_pattern ^http://.*\.cnn\.com 360 50% 4320 override-lastmod
override-expire ignore-reload
refresh_pattern ^http://news\.bbc\.co\.uk 360 50% 4320 override-lastmod
override-expire ignore-reload
refresh_pattern microsoft 1080 150% 10080 override-expire override-lastmod
override-expire
refresh_pattern msn\.com 4320 150% 10080 override-expire override-lastmod
override-expire
refresh_pattern ^http://.*\.doubleclick\.net 10080 300% 40320
override-expire override-lastmod override-expire ignore-reload
refresh_pattern ^http://.*FIDO 360 1000% 480
refresh_pattern \.phtml$ 240 200% 10080
refresh_pattern \.avi$ 10080 150% 40320
refresh_pattern \.mov$ 10080 150% 40320
refresh_pattern \.wav$ 10080 150% 40320
refresh_pattern \.mp3$ 10080 150% 40320
refresh_pattern \.qtm$ 10080 150% 40320
refresh_pattern \.mid$ 10080 150% 40320
refresh_pattern \.viv$ 10080 150% 40320
refresh_pattern \.mpg$ 10080 150% 40320
refresh_pattern \.jpg$ 10080 150% 40320
refresh_pattern \.rar$ 10080 150% 40320
refresh_pattern \.ram$ 10080 150% 40320
refresh_pattern \.r[0-9][0-0]$ 10080 150% 40320
refresh_pattern ^http://.*\.gif$ 1440 50% 20160
refresh_pattern ^http://.*\.asis$ 1440 50% 20160
refresh_pattern \.gif$ 10080 300% 40320
refresh_pattern \.txt$ 1440 100% 20160 override-lastmod
refresh_pattern \.zip$ 2880 200% 40320
refresh_pattern \.arj$ 2880 200% 40320
refresh_pattern \.exe$ 2880 200% 40320
refresh_pattern \.tgz$ 10080 200% 40320
refresh_pattern \.gz$ 10080 200% 40320
refresh_pattern \.tgz$ 10080 200% 40320
refresh_pattern \.tar$ 10080 200% 40320
refresh_pattern \.Z$ 10080 200% 40320
refresh_pattern \.pdf$ 720 100% 40320 override-lastmod
refresh_pattern ^ftp:// 1440 50% 14400 override-lastmod
refresh_pattern ^gopher:// 1440 50% 14400 override-lastmod
refresh_pattern . 360 50% 7200 override-lastmod

----- Original Message -----
From: "Brian" <hiryuu@envisiongames.net>
To: "Preston Garrison" <preston@way2fast.com>; <squid-users@squid-cache.org>
Sent: Wednesday, December 19, 2001 1:39 AM
Subject: Re: [squid-users] HTTP Accelerator

> A lot of people use squid for a reverse proxy.
>
> It sounds like something is seriously wrong, but more information is
> needed.
>
> What version of squid?
> What kind of hardware & OS?
> Are squid and the web server sharing a box, on separate boxes, or in a
> cluster arrangement?
>
> Perhaps you could post your condensed config file using
> egrep '^[a-z]' squid.conf
>
> -- Brian
>
> On Wednesday 19 December 2001 03:21 am, Preston Garrison wrote:
> > Does anyone run squid as an http accelerator. I am using it to
> > accelerate a website of mine, and something that my webserver takes 5%
> > of CPU to server the bandwidth, squid is using about 55% CPU. Does
> > anyone have a sample config , or any info on doing it?
> >
> > I think it may be verifying if a file has expired with every hit. How
> > would i fix it so that doesn't happen?
>
Received on Wed Dec 19 2001 - 02:07:13 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:05:24 MST