#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
#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);
}
}
found:
/* s is the first matching server, we're done */
- r->server = r->connection->server = s;
+ r->server = s;
}
(s->path[s->pathlen - 1] == '/' ||
r->uri[s->pathlen] == '/' ||
r->uri[s->pathlen] == '\0')) {
- r->server = r->connection->server = s;
+ r->server = s;
return;
}
}
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;
}
/* 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 */