On Tue, 2 Nov 2004, Jim Nachlin wrote:
> Hi,
>
> I'm getting a strange error while trying to use squid as an httpd
> accelerator. The error from squid is that it can not retrieve the url "/",
> but on the browser I'm using the url http://stage.example.com/. The address
> for this domain is in my hosts file. It's also in the hosts file of the
> server.
>
> Typical squid access log entry:
> 1099412745.010 9 192.168.2.75 TCP_DENIED/400 1419 GET / - NONE/-
> text/html
>
> Some relevant lines from squid.conf:
> http_port 80
> redirect_rewrites_host_header off
> http_access allow all
> httpd_accel_port 81
> httpd_accel_single_host on
> httpd_accel_uses_host_header off
> redirect_rewrites_host_header off
You ahre missing the httpd_accel_host directive. Without this Squid thinks
it is running as a normal proxy server, not as a web server.
Regards
Henrik
Received on Wed Nov 03 2004 - 03:24:01 MST
This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:01 MST