Wednesday, July 04, 2007

squid-cgi on ubuntu

*Make sure universe is included in the /etc/apt/sources.list

1] Install the CGI for squid
sudo aptitude install squid-cgi

2] Edit /etc/apache-perl/srm.conf to contain
ScriptAlias /Squid/cgi-bin/ /usr/lib/cgi-bin/ 
3] Edit /etc/apache-perl/access.conf to contain

<Location /Squid/cgi-bin/cachemgr.cgi>
order deny,allow
deny from all
allow from 192.168.6.0/255.255.255.0
</Location>

4] Edit /etc/squid/squid.conf to contain

cachemgr_passwd passwordher all

5] Restart squid and apache

sudo squid -k reconfigure && sudo /etc/init.d/apache-perl restart


Reference: http://www.gymradbn.sk/doc/squid-cgi/cachemgrfaq.html

No comments: