From: Roy T. Fielding Date: Thu, 26 Aug 1999 12:13:02 +0000 (+0000) Subject: Parts where server was eliminated from connection rec. X-Git-Tag: PRE_APR_CHANGES~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ada3bf91b2d5cfa97074c876db2c8e61f620bc1;p=apache Parts where server was eliminated from connection rec. Submitted by: Dean Gaudet git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83765 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/vhost.c b/server/vhost.c index 793048f947..8f5fc7d11a 100644 --- a/server/vhost.c +++ b/server/vhost.c @@ -63,10 +63,10 @@ #define CORE_PRIVATE #include "httpd.h" #include "http_config.h" -#include "http_conf_globals.h" #include "http_log.h" #include "http_vhost.h" #include "http_protocol.h" +#include "http_core.h" /* * After all the definitions there's an explanation of how it's all put @@ -647,8 +647,8 @@ void ap_fini_vhost_config(pool *p, server_rec *main_s) #ifdef IPHASH_STATISTICS dump_iphash_statistics(main_s); #endif - if (ap_dump_settings) { - dump_vhost_config(stderr); + if (getenv("DUMP_VHOSTS")) { + dump_vhost_config(STDERR_FILENO); } } @@ -824,7 +824,7 @@ static void check_hostalias(request_rec *r) found: /* s is the first matching server, we're done */ - r->server = r->connection->server = s; + r->server = s; } @@ -862,7 +862,7 @@ static void check_serverpath(request_rec *r) (s->path[s->pathlen - 1] == '/' || r->uri[s->pathlen] == '/' || r->uri[s->pathlen] == '\0')) { - r->server = r->connection->server = s; + r->server = s; return; } } @@ -898,7 +898,7 @@ void ap_update_vhost_given_ip(conn_rec *conn) if (trav) { /* save the name_chain for later in case this is a name-vhost */ conn->vhost_lookup_data = trav->names; - conn->server = trav->server; + conn->base_server = trav->server; return; } @@ -910,7 +910,7 @@ void ap_update_vhost_given_ip(conn_rec *conn) /* maybe there's a default server matching this port */ trav = find_default_server(port); if (trav) { - conn->server = trav->server; + conn->base_server = trav->server; } /* otherwise we're stuck with just the main server */