Re: Access Denied on 2.2STABLE4 w/accel and proxy

From: Henrik Nordstrom <[email protected]>
Date: Sat, 07 Aug 1999 16:58:51 +0200

Jay Rouman wrote:

> I agree that Squid should refuse to accelerate itself. However, I
> don't see why it should detect a loop if it's asked to accelerate a
> web server on another machine or a web server on the same machine at a
> different port. That's what the http_accel_host directive is supposed
> to point to.

The problem is when you use Squid as both an proxy and accelerator. If
you try to proxy a request Squid is accelerating, then Squid will proxy
the request to itself and then detect a loop when trying to accelerate
the request.

The problem with proxying accelerated requests is well known and has
been discussed many many times.

There exists two simple fixes:

a) Use the no-proxy settings in your browser to not proxy requests for
the accelerated server.

b) Use a redirector to emulate httpd_accel_host on proxied requests.

The limitation of Squid 2 is that it can't both be a proxy and a
accelerator for the same request.

--
Henrik Nordstrom
Spare time Squid hacker
Received on Sat Aug 07 1999 - 08:35:43 MDT

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