[squid-users] problem with accelerator and /

From: <[email protected]>
Date: Fri, 26 Sep 2003 14:26:01 -0700

Hi, I've installed and configured Squid (NT 2.5 STABLE 3), and have it
"mostly" working - I have squid running on port 3128, and on the same
machine I'm forwarding requests to an Apache 2.0.47 running on port 82.
Fully qualified URLs work fine, but if I hit a folder (like "/"), the
request comes back to the browser via port 82 instead of 3128. The web
server is returning a 302 response along with a "Location:
http://localhost:82/index.htm" header. How can I configure Squid to handle
the Location header properly, so that all requests from the 3128 port come
back via port 3128?

I searched quite a bit but came up empty - have seen about the existence of
an rproxy variant of Squid that may be relevant, but I'm hoping something
as simple as this would be possible with normal Squid.

Here's my abbreviated squid.conf:

# http_port 3128 (default)
# emulate_httpd_log off (default)
hosts_file c:\winnt\system32\drivers\etc\hosts
# redirect_rewrites_host_header on (default)

#defaults
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

http_access allow all
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all

httpd_accel_host localhost
httpd_accel_port 82
httpd_accel_single_host on

Thanks in advance for your help - Brad
Received on Fri Sep 26 2003 - 15:26:05 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:20:03 MST