Cachemgr.cgi - Novell LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION Installation Manual

Hide thumbs Also See for LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION:
Table of Contents

Advertisement

41.6 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 convenient way to manage
the cache and view statistics without logging the server.
41.6.1 Setup
First, a running Web server on your system is required. Configure Apache as described
in Chapter 40, The Apache HTTP Server (page 745). To check if Apache is already
running, as root enter the command rcapache status. If a message like this ap-
pears:
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 Enterprise Server 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/
41.6.2 Cache Manager ACLs in
/etc/squid/squid.conf
There are some default settings in the original file required for the cache manager. First,
two ACLs are defined then http_access options use these ACLs to grant access from
the CGI script to Squid. The first ACL is the most important, because the cache manager
tries to communicate with Squid over the cache_object protocol.
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
The following rules give Apache the access rights to Squid:
http_access allow manager localhost
http_access deny manager
800
Installation and Administration

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10 sp3

Table of Contents