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

Function proxy_post_config

modules/proxy/mod_proxy.c:3094–3129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3092}
3093
3094static int proxy_post_config(apr_pool_t *pconf, apr_pool_t *plog,
3095 apr_pool_t *ptemp, server_rec *main_s)
3096{
3097 server_rec *s = main_s;
3098 apr_status_t rv = ap_global_mutex_create(&proxy_mutex, NULL,
3099 proxy_id, NULL, s, pconf, 0);
3100 if (rv != APR_SUCCESS) {
3101 ap_log_perror(APLOG_MARK, APLOG_CRIT, rv, plog, APLOGNO(02478)
3102 "failed to create %s mutex", proxy_id);
3103 return rv;
3104 }
3105
3106 proxy_ssl_enable = APR_RETRIEVE_OPTIONAL_FN(ssl_proxy_enable);
3107 proxy_ssl_disable = APR_RETRIEVE_OPTIONAL_FN(ssl_engine_disable);
3108 proxy_ssl_engine = APR_RETRIEVE_OPTIONAL_FN(ssl_engine_set);
3109 ap_proxy_strmatch_path = apr_strmatch_precompile(pconf, "path=", 0);
3110 ap_proxy_strmatch_domain = apr_strmatch_precompile(pconf, "domain=", 0);
3111
3112 for (; s; s = s->next) {
3113 int rc, i;
3114 proxy_server_conf *sconf =
3115 ap_get_module_config(s->module_config, &proxy_module);
3116 ap_conf_vector_t **sections =
3117 (ap_conf_vector_t **)sconf->sec_proxy->elts;
3118
3119 for (i = 0; i < sconf->sec_proxy->nelts; ++i) {
3120 rc = proxy_run_section_post_config(pconf, ptemp, plog,
3121 s, sections[i]);
3122 if (rc != OK && rc != DECLINED) {
3123 return rc;
3124 }
3125 }
3126 }
3127
3128 return OK;
3129}
3130
3131/*
3132 * proxy Extension to mod_status

Callers

nothing calls this directly

Calls 2

ap_global_mutex_createFunction · 0.85
ap_get_module_configFunction · 0.85

Tested by

no test coverage detected