Search squid archive

Re: Accessing cachemgr.cgi

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

 



On Tue, Apr 15, 2008 at 01:53:46PM -0800, Chris Robertson wrote:
> hdkutz wrote:
> >Hello List,
> >pretty new to squid 3.0.
> >Tried to configure cachemgr.cgi.
> >Problem:
> >Squid is not listening to his standard port 3128.
> >It is configured to Listen on port 80.
> >Apache Webserver is configured to use port 3128.
> >If I try to access http://proxy:3128/cgi-bin/cachemgr.cgi I'll get
> ><snip>
> >connect 127.0.0.1:80: (111) Connection refused
> ><snip>
> >
> ><snipy>
> >[root@proxy etc]# grep manager squid.conf
> >acl manager proto cache_object
> >http_access allow manager localhost 
> >http_access deny manager
> >[root@proxy etc]# grep localhost squid.conf
> >acl localhost src 127.0.0.1/255.255.255.255
> >acl to_localhost dst 127.0.0.0/8
> >http_access allow manager localhost
> >http_access allow localhost
> >[root@proxy etc]# grep 127.0.0.1 cachemgr.conf 
> >127.0.0.1
> >127.0.0.1:80
> ><snipy>
> >
> >Am I missing something?
> >  
> 
> My guess would be that either you have specified an IP address on the 
> "port" line of your squid.conf, which forces Squid to only bind to the 
> interface where that IP is assigned, or something is preventing local 
> communication (be it SELinux, firewall rules...).
> 
> Chris
Thanx for your suggestion.
No SELinux, firewall rules.
You are right. Indeed, squid only listens on one IP.
Reconfigured squid to listen on 127.0.0.1:80 also.
Got now:
<snip>
ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: cache_object://127.0.0.1/

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. 

Your cache administrator is webmaster.
Generated Wed, 16 Apr 2008 08:04:05 GMT by proxy (squid/3.0.STABLE4) 
<snip>
Seems to me, that an ACL is missing.
But, acl localhost is already there (see above).
Does this acl misses something.

Cheers,
ku
-- 
Jabba the Hutt:
	Bring me Solo and the Wookiee! They will all suffer
	for this outrage.

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

  Powered by Linux