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

Function post_config

modules/mappers/mod_rewrite.c:4828–4860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4826}
4827
4828static int post_config(apr_pool_t *p,
4829 apr_pool_t *plog,
4830 apr_pool_t *ptemp,
4831 server_rec *s)
4832{
4833 apr_status_t rv;
4834
4835 /* check if proxy module is available */
4836 proxy_available = (ap_find_linked_module("mod_proxy.c") != NULL);
4837
4838 if (rewrite_lock_needed) {
4839 rv = rewritelock_create(s, p);
4840 if (rv != APR_SUCCESS) {
4841 return HTTP_INTERNAL_SERVER_ERROR;
4842 }
4843
4844 apr_pool_cleanup_register(p, (void *)s, rewritelock_remove,
4845 apr_pool_cleanup_null);
4846 }
4847
4848 /* if we are not doing the initial config, step through the servers and
4849 * open the RewriteMap prg:xxx programs,
4850 */
4851 if (ap_state_query(AP_SQ_MAIN_STATE) == AP_SQ_MS_CREATE_CONFIG) {
4852 for (; s; s = s->next) {
4853 if (run_rewritemap_programs(s, p) != APR_SUCCESS) {
4854 return HTTP_INTERNAL_SERVER_ERROR;
4855 }
4856 }
4857 }
4858
4859 return OK;
4860}
4861
4862static void init_child(apr_pool_t *p, server_rec *s)
4863{

Callers

nothing calls this directly

Calls 4

ap_find_linked_moduleFunction · 0.85
rewritelock_createFunction · 0.85
ap_state_queryFunction · 0.85
run_rewritemap_programsFunction · 0.85

Tested by

no test coverage detected