Hi,
I was trying to set up my squid manager client by following the instructions
at http://wiki.squid-cache.org/SquidFaq/CacheManager
Unfortunately these instructions do not appear to correspond to my set-up.
I have squid 2.6.STABLE9, Apache/2.0.55 running on Ubuntu 6.10 (kernel
2.6.17-10-generic) 64-bit.
On the instructions it says to set up a ScriptAlias in my httpd.conf file,
but I do not have a httpd.conf file.
Instead, I had to create a new "site" under /etc/apache2/sites-available.
Then you have to make a symlink to the file you just made under
/etc/apache2/sites-enabled. I also had to edit "ports.conf" to add the port
I wanted to listen for (I think this is an optional step).
Here is my site configuration:
NameVirtualHost *:8888 # port number I chose
<VirtualHost *:8888>
ServerAdmin webmaster@server
DocumentRoot /var/www/squid
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/squid/>
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive if you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /Squid/cgi-bin/ /var/www/squid/cgi-bin/
<Directory "/var/www/squid/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from 192.168.1
</Directory>
ErrorLog /var/log/apache2/squid/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/squid/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
The script alias is supposed to point to /usr/share/squid/cgi-bin. I have
/usr/share but NOT /usr/share/squid. My cachemgr.cgi was located in
/usr/lib/squid/cachemgr.cgi, while the example on the wiki has it at
/usr/share/squid/cgi-bin/cachemgr.cgi. I copied my cachemgr.cgi to
/var/www/squid/cgi-bin/cachemgr.cgi so it would run.
Now my cache manager runs at
http://localhost:port/Squid/cgi-bin/cachemgr.cgi as it should.
I hope this can help someone else trying to set up their Cache Manager
Angela Burrell
Computer Systems Administrator
Lambton County Human Resource Admin Services, Inc
Bayside Centre, Sarnia, Ontario
(519) 344-2062 ext. 2348
Received on Tue Jul 03 2007 - 14:06:22 MDT
This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:03 MDT