squid cachemgr: Unknown host: localhost

2006-02-24 Thread Martin Schröder
Hi,
I've a firewall/proxy with 3.7 running a named and transparent
squid. I want to use cachemgr.cgi, so I've setup apache to listen
on port 8080 and copied /usr/local/libexec/cachemgr.cgi to
/var/www/cgi-bin

Now, the Cache Manager Interface comes up on
http://firewall:8080/cgi-bin/cachemgr.cgi, but whatever I enter
(or if I simply press Continue), I always get an error page:

Cache Manager Error

Unknown host: localhost 

I'm stymied; dig localhost works. :-(

Any clues?

Thanks in advance
Martin
-- 
http://www.tm.oneiros.de



Re: squid cachemgr: Unknown host: localhost

2006-02-24 Thread eric
On Fri, 2006-02-24 at 21:57:24 +0100, Martin Schrvder proclaimed...

 Now, the Cache Manager Interface comes up on
 http://firewall:8080/cgi-bin/cachemgr.cgi, but whatever I enter
 (or if I simply press Continue), I always get an error page:
 
 Cache Manager Error
 
 Unknown host: localhost 
 
 I'm stymied; dig localhost works. :-(

Sounds like something you should ask on an appropriate mailing list.

If `telnet localhost 22` (or any other listening port) works, then this
isn't a problem for this mailing list.



Re: squid cachemgr: Unknown host: localhost

2006-02-24 Thread Ray Lai
On Fri, Feb 24, 2006 at 09:57:24PM +0100, Martin Schr?der wrote:
 Hi,
 I've a firewall/proxy with 3.7 running a named and transparent
 squid. I want to use cachemgr.cgi, so I've setup apache to listen
 on port 8080 and copied /usr/local/libexec/cachemgr.cgi to
 /var/www/cgi-bin
 
 Now, the Cache Manager Interface comes up on
 http://firewall:8080/cgi-bin/cachemgr.cgi, but whatever I enter
 (or if I simply press Continue), I always get an error page:
 
 Cache Manager Error
 
 Unknown host: localhost 
 
 I'm stymied; dig localhost works. :-(
 
 Any clues?

Apache is chrooted so it has no access to /etc/hosts and /etc/resolv.conf.
Try changing all ``localhost'' references to ``127.0.0.1'' in the CGI.

-Ray-