- Squid no longer tries to do Range internally if it is not supported
by the origin server. Doing so could cause bandwidth spikes and/or
negative hit ratio.
+ - httpd_accel_single_host squid.conf directive
Changes to Squid-2.4.DEVEL2 ():
#
-# $Id: cf.data.pre,v 1.173 2000/05/02 19:58:13 hno Exp $
+# $Id: cf.data.pre,v 1.174 2000/05/02 20:28:30 hno Exp $
#
#
# SQUID Internet Object Cache http://squid.nlanr.net/Squid/
httpd_accel_port port
DOC_END
+NAME: httpd_accel_single_host
+COMMENT: on|off
+TYPE: onoff
+LOC: Config.Accel.single_host
+DEFAULT: on
+DOC_START
+ 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.
+DOC_END
NAME: httpd_accel_with_proxy
COMMENT: on|off
/*
- * $Id: forward.cc,v 1.71 2000/05/02 19:35:23 hno Exp $
+ * $Id: forward.cc,v 1.72 2000/05/02 20:28:30 hno Exp $
*
* DEBUG: section 17 Request Forwarding
* AUTHOR: Duane Wessels
port = fs->peer->http_port;
ctimeout = fs->peer->connect_timeout > 0 ? fs->peer->connect_timeout
: Config.Timeout.peer_connect;
+ } else if (fwdState->request->flags.accelerated &&
+ Config.Accel.single_host && Config.Accel.host) {
+ host = Config.Accel.host;
+ port = Config.Accel.port;
+ ctimeout = Config.Timeout.connect;
} else {
host = fwdState->request->host;
port = fwdState->request->port;
/*
- * $Id: structs.h,v 1.321 2000/05/02 19:35:24 hno Exp $
+ * $Id: structs.h,v 1.322 2000/05/02 20:28:30 hno Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
int authenticateTTL;
int authenticateIpTTL;
struct {
+ int single_host;
char *host;
u_short port;
} Accel;