Search squid archive

Re: [squid-users] Cache isn't used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Henrik Nordstrom" wrote:

> http://www.squid-cache.org/Doc/FAQ/FAQ-9.html

I have read FAQ and option for cachemgr in squid.conf.default but I still have problems, I have copied "cachemgr.cgi" from "/usr/lib/squid/" to "/var/www/cgi-bin", and then in squid.conf I have inserted:

acl manager proto cache_object
acl sasab src 10.0.0.15/255.255.255.0
http_access allow manager sasab
cachemgr_passwd mypassword all

..then I have inserted in httpd.conf:

<Location /var/www/cgi-bin/cachemgr.cgi>
AuthUserFile /etc/squid/myfile
AuthGroupFile /dev/null
AuthName User/Password Required
AuthType Basic
require user cachemanager
</Location>

..when in "myfile" is writed the password (mypassword) for cachemanager, but when restart httpd I have:

[root@localhost root]# /etc/init.d/httpd restart
Interruzione di httpd:                                     [  OK  ]
Avvio di httpd: Syntax error on line 991 of /etc/httpd/conf/httpd.conf:
AuthName takes one argument, The authentication realm (e.g. "Members Only")
                                                           [FALLITO]

.. if in the httpd.conf:

<Location /var/www/cgi-bin/cachemgr.cgi>
AuthUserFile /etc/squid/myfile
AuthGroupFile /dev/null
AuthName "User/Password Required"
AuthType Basic
require user cachemanager
</Location>

.. when restart httpd I don't have error but in the browser after insert user and password:

ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: cache_object://10.0.0.254/ 
The following error was encountered: 
Access Denied. 
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect. 

.. where mistake? thanks for the patience!!

        Salvatore.


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux