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

From: Henrik Nordstrom <[email protected]>
Date: Wed, 04 Aug 1999 22:21:46 +0200

Jay Rouman wrote:
>
> I'm sure this must be something simple, but I've searched the FAQ and
> archive without luck.
>
> When I run 2.2STABLEX with both accel and proxy on, it won't connect
> to its accel host:
>
> > While trying to retrieve the URL: http://localhost:81/
> >
> > The following error was encountered:
> > * Access Denied.

Your squid.conf may be using the Safe_Ports ACL.. or you were trying to
access your site while using the same Squid as a proxy (won't work,
squid will proxy the request to itself, and then the accelerator
functions will reject the request thinking it is a loop). If that is the
cause then you need to use a redirector to do the same job as
httpd_accel_host does on accelerated requests.

Note that I strongly suggest you to move the HTTP server to port 80.
Running the HTTP server on a different port than the "accelerator" will
give you problems. The most obvious problem is that users will quite
often be automatically moved to the non-accelerated port by the web
server sending a redirect or CGI generated link.

How to run both the HTTP server and "accelerator" on the same port on
the same machine: Bind each of them to different IP addresses. Bind
Squid to the official IP address, and the HTTP server to 127.0.0.1.

--
Henrik Nordstrom
Spare time Squid hacker
Received on Wed Aug 04 1999 - 14:49:28 MDT

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