Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

conf file in this way:

acl localnetp2 src 192.168.2.0/24
http_access allow localnetp2 manager
http_access deny manager

I want to active the cache web manager, in the apache conf file(/etc/httpd/conf.d/squid-cachemgr.conf) i put:

ScriptAlias /Squid/cgi-bin/cachemgr.cgi /opt/squid/squid-3.2/libexec/cachemgr.cgi
# Only allow access from localhost by default
<Location /Squid/cgi-bin/cachemgr.cgi>
order deny,allow
deny from all
allow from 192.168.2.12
# If we want to allow access to cache manager from 192.0.2.25,
# uncomment the following line
# allow from 192.0.2.25
# Add additional allowed hosts as needed
# allow from .example.com
</Location>

I write in the apache /etc/httpd/conf/httpd.conf

ServerName proxyserver

I run the command :

apachectl graceful

my /etc/hosts file:

127.0.0.1 localhosht.localdomain localhost
192.168.2.1 proxyserver

when i try to enter to the cache web manager the apache give the error:

Forbidden
You don't have permission to access /Squid/cgi-bin/cachemgr.cgi on this server.
Apache/2.2.15 (CentOS) Server at 192.168.2.1 Port 80

In the log of apache i see:

[error][client 192.168.2.1] client denied by server configuration : /opt/squid/squid-3.2/libexec/cachemgr.cgi

How can i fix this? thanks.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.