Cachemgr.cgi - Novell LINUX ENTERPRISE SERVER 11 - ADMINISTRATION Administration Manual

Hide thumbs Also See for LINUX ENTERPRISE SERVER 11 - ADMINISTRATION:
Table of Contents

Advertisement

29.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.
29.6.1 Setup
First, a running Web server on your system is required. Configure Apache as described
in
Chapter 27, The Apache HTTP Server
(page 371). 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. For 32-bit, this
works as follows:
cp /usr/lib/squid/cachemgr.cgi /srv/www/cgi-bin/
In a 64-bit environment, the file cachemgr.cgi is located below /usr/lib64/
squid/ and the command to copy it to the Apache directory is the following:
cp /usr/lib64/squid/cachemgr.cgi /srv/www/cgi-bin/
29.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
434
Administration Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11

Table of Contents