/*
- * $Id: cache_cf.cc,v 1.435 2003/02/25 12:24:35 robertc Exp $
+ * $Id: cache_cf.cc,v 1.436 2003/02/25 15:07:53 hno Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
static void
configDoConfigure(void)
{
- LOCAL_ARRAY(char, buf, BUFSIZ);
memset(&Config2, '\0', sizeof(SquidConfig2));
/* init memory as early as possible */
memConfigure();
}
}
- if (Config.Accel.host) {
- snprintf(buf, BUFSIZ, "http://%s:%d", Config.Accel.host, Config.Accel.port);
- Config2.Accel.prefix = xstrdup(buf);
- Config2.Accel.on = 1;
- }
-
if (Config.appendDomain)
if (*Config.appendDomain != '.')
fatal("append_domain must begin with a '.'");
storeConfigure();
- if (Config2.Accel.on && !strcmp(Config.Accel.host, "virtual")) {
- vhost_mode = 1;
-
- if (Config.Accel.port == 0)
- vport_mode = 1;
- }
-
snprintf(ThisCache, sizeof(ThisCache), "%s (%s)",
uniqueHostname(),
full_appname_string);
+
/*
* the extra space is for loop detection in client_side.c -- we search
* for substrings in the Via header.
/*
- * $Id: structs.h,v 1.454 2003/02/25 12:22:34 robertc Exp $
+ * $Id: structs.h,v 1.455 2003/02/25 15:07:54 hno Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
sockaddr_in_list *next;
};
+struct _http_port_list
+{
+ http_port_list *next;
+
+ struct sockaddr_in s;
+ char *protocol; /* protocol name */
+ char *name; /* visible name */
+ char *defaultsite; /* default web site */
+
+unsigned int transparent:
+ 1; /* transparent proxy */
+
+unsigned int accel:
+ 1; /* HTTP accelerator */
+
+unsigned int vhost:
+ 1; /* uses host header */
+
+ int vport; /* virtual port support, -1 for dynamic, >0 static*/
+};
+
+
#if USE_SSL
struct _https_port_list
{
- https_port_list *next;
-
- struct sockaddr_in s;
+ http_port_list http; /* must be first */
char *cert;
char *key;
int version;
/*
- * $Id: typedefs.h,v 1.154 2003/02/25 12:22:35 robertc Exp $
+ * $Id: typedefs.h,v 1.155 2003/02/25 15:07:54 hno Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
typedef struct _sockaddr_in_list sockaddr_in_list;
+typedef struct _http_port_list http_port_list;
+
typedef struct _https_port_list https_port_list;
typedef struct _SquidConfig SquidConfig;