Red Hat Bugzilla – Bug 205568
Possible need to make cachemgr.conf world readable
Last modified: 2007-11-30 17:11:42 EST
Description of problem:
This is not actually a bug.
The /etc/squid/cachemgr.conf file needs to be world readable in order to be read
by cachemgr.cgi. Otherwise the script cannot read the available servers. Not to
mention the not so descriptive error it prints. For example:
target localhost:3128 not allowed in cachemgr.conf
I don't know if that conf file is deliberately shipped with 0640 mode for
security reasons. In that case, I believe that a comment about making it world
readable should exist within the cachemgr.conf file.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. configure and start squid
2. restart apache so that /etc/httpd/conf.d/squid.conf is read
3. go to www.example.org/Squid/cgi-bin/cachemgr.cgi
4. enter a cache host that exists in /etc/squid/cachemgr.conf and continue
the error mentioned above shows up
should connect to the requested cache
Ouch, this one just cost me 2 hours. Raoul is exactly right. The perms need
0644 or cachemgr won't let you in no matter what you do, and the error provided
in the browser is completely useless. And worse yet, no useful errors are
logged to squid's or apache's logs.
Easiest fix is make that file 0644 in the distribution. It's non-sensitive info.
okay, added to CVS.