]> granicus.if.org Git - apache/commitdiff
Parts where server was eliminated from connection rec.
authorRoy T. Fielding <fielding@apache.org>
Thu, 26 Aug 1999 12:13:02 +0000 (12:13 +0000)
committerRoy T. Fielding <fielding@apache.org>
Thu, 26 Aug 1999 12:13:02 +0000 (12:13 +0000)
Submitted by: Dean Gaudet

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83765 13f79535-47bb-0310-9956-ffa450edef68

server/vhost.c

index 793048f947104aa5f639d36d7fc810a465de68a8..8f5fc7d11ac347138b3fd9a746a851b83ab2ed21 100644 (file)
 #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 */