By Duane Wessels
Book Price: $44.95 USD
£31.95 GBP
PDF Price: $31.99
Cover | Table of Contents | Colophon
http://www.gnu.org/licenses/gpl-faq.html for
more information about the GPL.http://www.squid-cache.org. There you can:http://www.squid-cache.org/Doc/FAQ/FAQ.html,
is a good source of information for new users. The FAQ evolves over
time, so it will contain entries written after this book. The FAQ
also contains some historical information that may be irrelevant
today.http://www.squid-cache.org/mailing-lists.html,
for possibly more up-to-date information.http://www.squid-cache.org/. The home page
has links to the current stable and development releases. If you
aren't located in the United States, you can select
one of the many mirror sites. The mirror sites are usually named
"wwwN.CC.squid-cache.org,"
where N is a number and CC
is a two-letter country code. For example,
www1.au.squid-cache.org is an Australian mirror
site. The home page has links to the current mirror sites.CVSROOT environment variable:csh% setenv CVSROOT :pserver:anoncvs@cvs.squid-cache.org:/squid
sh$ CVSROOT=:pserver:anoncvs@cvs.squid-cache.org:/squid sh$ export CVSROOT
% cvs login (Logging in to anoncvs@cvs.squid-cache.org) CVS password:
% cvs checkout -r SQUID_2_5 -d squid-2.5 squid
squid) is the name of the module to check out.http://devel.squid-cache.org/. There
you'll find a number of cutting-edge development
projects that haven't yet been integrated into the
official Squid code base. You can access these projects through
SourceForge's anonymous CVS server or download diff
files based on the standard releases.% cd /tmp % tar xzvf /some/where/squid-2.5.STABLE4-src.tar.gz squid-2.5.STABLE4/ squid-2.5.STABLE4/CONTRIBUTORS squid-2.5.STABLE4/COPYING squid-2.5.STABLE4/COPYRIGHT squid-2.5.STABLE4/CREDITS squid-2.5.STABLE4/ChangeLog squid-2.5.STABLE4/INSTALL squid-2.5.STABLE4/QUICKSTART squid-2.5.STABLE4/README ...
% gzip -dc /some/where/squid-2.5.STABLE4-src.tar.gz | tar xvf -
% ls -l /usr/local/squid total 5 drwxr-x--- 2 wessels wheel 512 Apr 28 20:42 bin drwxr-x--- 2 wessels wheel 512 Apr 28 20:42 etc drwxr-x--- 2 wessels wheel 512 Apr 28 20:42 libexec drwxr-x--- 3 wessels wheel 512 Apr 28 20:43 man drwxr-x--- 2 wessels wheel 512 Apr 28 20:42 sbin drwxr-x--- 4 wessels wheel 512 Apr 28 20:42 share drwxr-x--- 4 wessels wheel 512 Apr 28 20:43 var
% ./configure --localstatedir=/bigdisk/var
% make
source='cbdata.c' object='cbdata.o' libtool=no depfile='.deps/cbdata.Po' tmpdepfile='.deps/cbdata.TPo' depmode=gcc /bin/sh ../cfgaux/depcomp gcc -DHAVE_ CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I. -I../ include -I. -I. -I../include -I../include -g -O2 -Wall -c 'test -f cbdata.c || echo './''cbdata.c source='client_db.c' object='client_db.o' libtool=no depfile='.deps/client_db.Po' tmpdepfile='.deps/client_db.TPo' depmode=gcc /bin/sh ../cfgaux/depcomp gcc -DHAVE_ CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I. -I../ include -I. -I. -I../include -I../include -g -O2 -Wall -c 'test -f client_db.c || echo './''client_db.c source='client_side.c' object='client_side.o' libtool=no depfile='.deps/client_side.Po' tmpdepfile='.deps/client_side.TPo' depmode=gcc /bin/sh ../cfgaux/depcomp gcc - DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I. -I../ include -I. -I. -I../include -I../include -g -O2 -Wall -c 'test -f client_side.c || echo './''client_side.c source='comm.c' object='comm.o' libtool=no depfile='.deps/comm.Po' tmpdepfile='. deps/comm.TPo' depmode=gcc /bin/sh ../cfgaux/depcomp gcc -DHAVE_CONFIG_H -DDEFAULT_ CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I. -I../include -I. -I. -I../ include -I../include -g -O2 -Wall -c 'test -f comm.c || echo './''comm.c
% make Making all in lib... Making all in scripts... Making all in src... Making all in fs... Making all in repl... 'squid' is up to date. 'client' is up to date. 'unlinkd' is up to date. 'cachemgr.cgi' is up to date. Making all in icons... Making all in errors... Making all in auth_modules...
% su Password: # make install
pinger program. The pinger
program
must be installed with superuser
privileges because only root is allowed to send
and receive ICMP messages. The following command installs
pinger with the appropriate permissions:# make install-pinger
http://www.gnu.org/directory/patch.html).
Note that if you're using anonymous CVS (see Section 2.4), you don't need to worry
about patching files. The CVS system does it for you automatically
when you update your tree.% cd squid-2.5.STABLE4 % patch < /tmp/patch_file
offset NNN lines. If you
don't want to see all this output, use the
-s option to make patch silent.% ./config.status --recheck
% touch config.status % make
% head config.status #! /bin/sh # Generated automatically by configure. # Run this file to recreate the current configuration. # This directory was configured as follows, # on host foo.life-gone-hazy.com: # # ./configure --enable-storeio=ufs,diskd --enable-carp \ # --enable-auth-modules=NCSA # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists.
make clean first:% make clean % make
% make distclean
make again.http://www.webmin.com and The Book
of Webmin by Joe Cooper (No Starch Press) for more
information.#) when reading the configuration
file. Here are some sample configuration lines:cache_log /squid/var/cache.log # define the localhost ACL acl Localhost src 127.0.0.1/32 connect_timeout 2 minutes log_fqdn on
connect_timeout 2 minutes connect_timeout 1 hour
extension_methods UNGET extension_methods UNPUT extension_methods UNPOST
#) when reading the configuration
file. Here are some sample configuration lines:cache_log /squid/var/cache.log # define the localhost ACL acl Localhost src 127.0.0.1/32 connect_timeout 2 minutes log_fqdn on
connect_timeout 2 minutes connect_timeout 1 hour
extension_methods UNGET extension_methods UNPUT extension_methods UNPOST
extension_methods UNGET UNPUT UNPOST
connect_timeout 3 hours client_lifetime 4 days negative_ttl 27 minutes
bytes,
KB, MB, or
GB. For example:minimum_object_size 12 bytes request_header_max_size 10 KB maximum_object_size 187 MB
on or off. Many directives use
this type. For example:server_persistent_connections on strip_query_terms off prefer_direct on