Use cachemgr. cgi to monitor squid-Linux Enterprise Application-Linux server application information. The following is a detailed description. You need to use cachemgr. cgi to monitor squid, but it is not good to find many configuration methods from the Internet.
Use the following method:
Cachemgr. cgi Configuration
To make it easier to check the hit rate, you also need to configure the built-in cgi Script: cachemgr. cgi, the script can be placed in the apache/cgi-bin/directory of the local machine or another machine, and then configured:
Note: The cachemgr. conf and cachemgr. cgi files under the etc directory of squid must be placed in the same directory.
Modify the configuration in the cachemgr. conf directory
192.168.1.15: 80 port 80 is the squid port. Otherwise, an error will be reported later.
Configure apache
1. Remove the # sign before AddHandler cgi-script. cgi;
2. ScriptAlias/cgi-bin/"/usr/local/apache/cgi-bin/" Remove the '#' above. apache removes the '#' by default;
3. Add the following Configuration:
Options FollowSymLinks
AllowOverride None
Order allow, deny
Allow from all
Options-Indexes
Generate the cachemgr. cgi access password:
Htpasswd-c squid. pwd squidadmin
Chown apache. apache squid. pwd
I entered http: // ip address/cgi-bin/cachemgr. cgi, and a box containing the password and password appeared.
However, no matter which user name or password I enter is incorrect.
How can I configure it?
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.