Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 613 — #639
i
i
i
i
i
i
i
i
25
Internet
25.3.7 cachemgr.cgi
The cache manager (cachemgr.cgi) is a CGI utility for displaying statistics
about the memory usage of a running Squid process. It is also a more con-
venient way to manage the cache and view statistics without logging the
server.
Setup
First, a running web server on your system is required. To check
if Apache is already running, as root enter the command
rcapache status. If a message like this appears:
Checking for service httpd: OK
Server uptime: 1 day 18 hours 29 minutes 39 seconds
Apache is running on the machine. Otherwise, enter rcapache start to
start Apache with the SUSE LINUX default settings. The last step to set it
up is to copy the file cachemgr.cgi to the Apache directory cgi-bin:
cp /usr/share/doc/packages/squid/scripts/cachemgr.cgi /srv/www/cgi-bin/
Cache Manager ACLs in /etc/squid/squid.conf
There are some default settings in the original file required for the cache
manager:
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
With the following rules:
http_access allow manager localhost
http_access deny manager
the first ACL is the most important, as the cache manager tries to commu-
nicate with Squid over the cache_object protocol.
The following rules assume that the web server and Squid are running on
the same machine. If the communication between the cache manager and
Squid originates at the web server on another computer, include an extra
ACL as in Example 25.2 on the following page.
613
SUSE LINUX Enterprise Server










