Re: bug or missconfiguration??

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 21 Dec 1999 22:53:22 +0100

The problem is that you use the same Squid as accelerator and proxy.

Squid will first proxy the request, then send contact itself as the
origin server, and third it denies the request since it loops back to
itself with a warning to cache.log.

Recommended action:
Use the no-proxy settings in your browser to not use the Squid proxy to
reach your accelerated site.

Other possible actions:
a) Use a redirector, emulating what httpd_accel_host/port does on
proxied requests for your server.

b) Split your Squid into two installations. One proxy and one
accelerator.

--
Henrik Nordstrom
Squid Hacker
Chris Ison wrote:
> 
> I have squid 2.2.stable5 set up as a httpd_accel and a proxy cache. I
> went through the conf file very carefully and through the FAQ and I
> checked email lists but I cannot see anything releating to my particular
> problem.
> 
> I keep getting forwarding loop warnings when ever someone tried to look
> at the web site as shown below and squid returns an access denied to the
> client.
> 
> -- snip cache.log --
> 
> 1999/12/20 10:33:55| WARNING: Forwarding loop detected for:
> GET / HTTP/1.0^M
> Accept: */*^M
> Accept-Language: en-us^M
> Accept-Encoding: gzip, deflate^M
> User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)^M
> Pragma: no-cache^M
> Via: 1.1 www.computers4all.com:80
> (Squid/2.2.STABLE5),NetCache@proxy.cache.telstra.net: Version 3.4D8^M
> X-Forwarded-For: 203.41.94.195,203.41.94.194^M
> Cache-Control: max-age=259200^M
> Host: www.computers4all.com^M
> Connection: Keep-Alive^M
> -- end snip cache.log --
> 
> I have httpd_accel setup as follows, and have tried "virtual" and
> "localhost" in place of "www.computers4all.com" with still the same
> result. apache is sitting on port 81.
> 
> httpd_accel_host www.computers4all.com
> httpd_accel_port 81
> httpd_accel_with_proxy on
Received on Tue Dec 21 1999 - 15:42:20 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:04 MST