
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 737). 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
794
Installation and Administration
Содержание LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Страница 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Страница 14: ......
Страница 19: ...Part I Deployment...
Страница 20: ......
Страница 60: ......
Страница 128: ......
Страница 243: ...Part II Administration...
Страница 244: ......
Страница 274: ......
Страница 312: ......
Страница 348: ......
Страница 380: ......
Страница 381: ...Part III System...
Страница 382: ......
Страница 438: ......
Страница 452: ......
Страница 478: ......
Страница 486: ......
Страница 498: ......
Страница 512: ......
Страница 558: ......
Страница 559: ...Part IV Services...
Страница 560: ......
Страница 652: ......
Страница 670: ......
Страница 742: ......
Страница 754: ......
Страница 796: ......
Страница 817: ...Part V Security...
Страница 818: ......
Страница 858: ......
Страница 886: ......
Страница 910: ......
Страница 911: ...Part VI Troubleshooting...
Страница 912: ......
Страница 924: ......