Cache Manager FAQ wiki - updated info

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cache Manager FAQ wiki - updated info

Angela Burrell-2
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
<a href="http://localhost:port/Squid/cgi-bin/cachemgr.cgi">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
Reply | Threaded
Open this post in threaded view
|

Re: Cache Manager FAQ wiki - updated info

Amos Jeffries
Administrator
> 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.
>

Ah, thank you for locating this oversight. I have corrected it by
splitting the Apache section for 1.x and 2.x specific configs.

Amos