Mark Plaksin <happy@arches.uga.edu> writes:
> # TAG: httpd_accel_single_host on|off
> # If you are running Squid as a accelerator and have a single backend
> # server then set this to on. This causes Squid to forward the request
> # to this server irregardles of what any redirectors or Host headers
> # says.
> #
> # Set this to off if you have multiple backend servers, and use a
> # redirector (or host table) to map the requests to the
> # appropriate backend servers. Note that the mapping needs to be a
> # 1-1 mapping between requested and backend (from redirector) domain
> # names or caching will fail, as cacing is performed using the
> # URL returned from the redirector.
> #
> # See also redirect_rewrites_host_header.
> #
> #Default:
> # httpd_accel_single_host on
This was the problem. Turn this off and it works as expected.
Maybe this should be added to the FAQ about transparent proxies
(http://www.squid-cache.org/Doc/FAQ/FAQ-17.html)? That is, change this:
4. Configure Squid to accept and process the connections. Finally, you
have to change the Squid configuration settings to recognize the
hijacked connections and discern the destination addresses. Here are
the important settings in squid.conf:
http_port 8080
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
to this:
4. Configure Squid to accept and process the connections. Finally, you
have to change the Squid configuration settings to recognize the
hijacked connections and discern the destination addresses. Here are
the important settings in squid.conf:
http_port 8080
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
httpd_accel_single_host off
-- To unsubscribe, see http://www.squid-cache.org/mailing-lists.htmlReceived on Wed Aug 30 2000 - 12:15:07 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:55:08 MST