MCPcopy Create free account
hub / github.com/apache/httpd / ap_fixup_virtual_hosts

Function ap_fixup_virtual_hosts

server/config.c:2163–2204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2161}
2162
2163AP_DECLARE(void) ap_fixup_virtual_hosts(apr_pool_t *p, server_rec *main_server)
2164{
2165 server_rec *virt;
2166 core_dir_config *dconf =
2167 ap_get_core_module_config(main_server->lookup_defaults);
2168 dconf->log = &main_server->log;
2169
2170 for (virt = main_server->next; virt; virt = virt->next) {
2171 merge_server_configs(p, main_server->module_config, virt);
2172
2173 virt->lookup_defaults =
2174 ap_merge_per_dir_configs(p, main_server->lookup_defaults,
2175 virt->lookup_defaults);
2176
2177 if (virt->server_admin == NULL)
2178 virt->server_admin = main_server->server_admin;
2179
2180 if (virt->timeout == 0)
2181 virt->timeout = main_server->timeout;
2182
2183 if (virt->keep_alive_timeout == 0)
2184 virt->keep_alive_timeout = main_server->keep_alive_timeout;
2185
2186 if (virt->keep_alive == -1)
2187 virt->keep_alive = main_server->keep_alive;
2188
2189 if (virt->keep_alive_max == -1)
2190 virt->keep_alive_max = main_server->keep_alive_max;
2191
2192 ap_merge_log_config(&main_server->log, &virt->log);
2193
2194 dconf = ap_get_core_module_config(virt->lookup_defaults);
2195 dconf->log = &virt->log;
2196
2197 /* XXX: this is really something that should be dealt with by a
2198 * post-config api phase
2199 */
2200 ap_core_reorder_directories(p, virt);
2201 }
2202
2203 ap_core_reorder_directories(p, main_server);
2204}
2205
2206/*****************************************************************
2207 *

Callers 2

mainFunction · 0.85
http_config.hFile · 0.85

Calls 5

merge_server_configsFunction · 0.85
ap_merge_per_dir_configsFunction · 0.85
ap_merge_log_configFunction · 0.85

Tested by

no test coverage detected