[squid-users] squid.conf

From: Brent Clark <[email protected]>
Date: Tue, 10 Aug 2004 17:28:08 +0200

Hi all

I have a proxy server running on my network.
And my browser is pointing to the proxy server.

I too have a few http servers running on the lan.
My question is, how would I go about making it so that I DO NOT cache
anything for my network (192.168.111.0/24) browsing.
and also, would using the following improve the performance of my proxy
"cache_replacement_policy heap GDSF"

My conf file is copied and pasted below

Kind Regards
Brent Clark
=======================================================================
#Turn logging to it's lowest level
debug_options ALL,1

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl mynet src 192.168.111.0/255.255.255.0
acl localhost src 127.0.0.0/255.0.0.0
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 25 # smtp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 110 # pop3
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
#acl purge method PURGE
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 allow mynet
http_access deny all

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

http_port 192.168.111.10:3128

#offline_mode on

cache_effective_user proxy
cache_effective_group proxy

cache_replacement_policy heap GDSF

cache_dir ufs /var/spool/squid 150 16 256

#maximum_object_size 200 KB
maximum_object_size 4096 KB

cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log

client_lifetime 15 minutes
half_closed_clients on

cache_mem 3 MB
cache_mgr me@me

dns_nameservers 192.168.111.206 196.43.1.11 196.25.1.11

visible_hostname gate
unique_hostname gate
Received on Tue Aug 10 2004 - 09:26:02 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:02 MDT