Securing-Optimizing-RH-Linux-1_2_351
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
351
cache server can use your one. Its important to note that in this situation, the proxy cache can
play two different roles in a hierarchy. It can be configured to be a sibling cache and be able to
only serve documents it already has or it can be configured as a parent cache and be able to get
documents from another cache or from the source directly.
NOTE: A good strategy to avoid generating more network traffic than without web caching is to
choose to have several sibling caches and only a small number of parent caches.
Configuration of the /etc/rc.d/init.d/squid script file for all kind of configuration
Configure your /etc/rc.d/init.d/squid script file to start and stop Squid Internet Object Cache. This
script have been modified to setup swap cache for Squid in /cache instead of /var/spool/squid.
Create the squid script file (touch /etc/rc.d/init.d/squid) and add:
#!/bin/bash
# squid
This shell script takes care of starting and stopping
#
Squid Internet Object Cache
#
# chkconfig: - 90 25
# description: Squid - Internet Object Cache. Internet object caching is \
#
a way to store requested Internet objects (i.e., data available \
#
via the HTTP, FTP, and gopher protocols) on a system closer to the \
#
requesting site than to the source. Web browsers can then use the \
#
local Squid cache as a proxy HTTP server, reducing access time as \
#
well as bandwidth consumption.
# pidfile: /var/run/squid.pid
# config: /etc/squid/squid.conf
PATH=/usr/bin:/sbin:/bin:/usr/sbin