Description
Book SynopsisSquid is the most popular Web caching software in use today, and it works on a variety of platforms including Linux, FreeBSD, and Windows. Written by Duanne Wessells, this guide helps readers configure and tune Squid for a particular situation.
Table of ContentsPreface; 1. Introduction; Web Caching; A Brief History of Squid Hardware and Operating System Requirements; Squid Is Open Source Squid's Home on the Web; Getting Help; Getting Started with Squid Exercises; 2. Getting Squid; Versions and Releases; Use the Source, Luke; Precompiled Binaries; Anonymous CVS; devel.squid-cache.org; Exercises; 3. Compiling and Installing; Before You Start; Unpacking the Source; Pretuning Your Kernel; The configure Script; make; make Install; Applying a Patch Running configure Later; Exercises; 4. Configuration Guide for the Eager; The squid.conf Syntax; User IDs; Port Numbers Log File Pathnames; Access Controls; Visible Hostname;; Administrative Contact Information; Next Steps; Exercises 5. Running Squid; Squid Command-Line Options; Check Your Configuration File for Errors; Initializing Cache Directories Testing Squid in a Terminal Window; Running Squid as a Daemon Process; Boot Scripts; A chroot Environment; Stopping Squid Reconfiguring a Running Squid Process; Rotating the Log Files Exercises; 6. All About Access Controls; Access Control Elements Access Control Rules; Common Scenarios; Testing Access Controls Exercises; 7. Disk Cache Basics; The cache_dir Directive Disk Space Watermarks; Object Size Limits; Allocating Objects to Cache Directories; Replacement Policies; Removing Cached Objects; refresh_pattern; Exercises; 8. Advanced Disk Cache Topics; Do I Have a Disk I/O Bottleneck?; Filesystem Tuning Options; Alternative Filesystems; The aufs Storage Scheme The diskd Storage Scheme; The coss Storage Scheme; The null Storage Scheme; Which Is Best for Me?; Exercises 9. Interception Caching; How It Works; Why (Not) Intercept? The Network Device; Operating System Tweaks; Configure Squid Debugging Problems; Exercises; 10. Talking to Other Squids Some Terminology; Why (Not) Use a Hierarchy?; Telling Squid About Your Neighbors; Restricting Requests to Neighbors;; The Network Measurement Database; Internet Cache Protocol Cache Digests; Hypertext Caching Protocol; Cache Array Routing Protocol; Putting It All Together; How Do I ...; Exercises; 11. Redirectors; The Redirector Interface; Some Sample Redirectors; The Redirector Pool; Configuring Squid Popular Redirectors; Exercises; 12. Authentication Helpers Configuring Squid; HTTP Basic Authentication; HTTP Digest Authentication; Microsoft NTLM Authentication; External ACLs Exercises; 13. Log Files; cache.log; access.log store.log; referer.log; useragent.log; swap.state; Rotating the Log Files; Privacy and Security; Exercises; 14. Monitoring Squid; cache.log Warnings; The Cache Manager Using SNMP; Exercises; 15. Server Accelerator Mode; Overview Configuring Squid; Gee, That Was Confusing!; Access Controls Content Negotiation; Gotchas; Exercises; 16. Debugging and Troubleshooting; Some Common Problems; Debugging via cache.log Core Dumps, Assertions, and Stack Traces; Replicating Problems Reporting a Bug; Exercises; A. Config File Reference B. The Memory Cache; C. Delay Pools