| 4826 | } |
| 4827 | |
| 4828 | static 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 | |
| 4862 | static void init_child(apr_pool_t *p, server_rec *s) |
| 4863 | { |
nothing calls this directly
no test coverage detected