Changes with Apache 2.0b1
+ *) Remove AddModule and ClearModuleList directives. Both of these
+ directives were used to ensure that modules could be enabled
+ in the correct order. That requirement is now gone, because
+ we use hooks to ensure that modules are in the correct order.
+ [Ryan Bloom]
+
*) When SuExec is specified, we need to add it to the list of
targets to be built. If we don't, then any changes to the
configuration won't affect SuExec, unless 'make suexec' is
APACHE 2.0 STATUS: -*-text-*-
-Last modified at [$Date: 2001/01/21 17:51:08 $]
+Last modified at [$Date: 2001/01/21 22:14:13 $]
Release:
should probably move into build/special.mk (the make file used for
building Apache modules).
- * toss the AddModule directive. we add all prelinked modules
- automatically, and the LoadModule directive now implies
- AddModule. so... there is no point to it any more.
- RBB says: We do not add all prelinked modules back after
- a clear module list. If we remove AddModule, we
- also need to remove ClearModuleList, because
- it wouldn't make any sense.
-
-
PRs that have been suspended forever waiting for someone to
put them into 'the next release':
* @deffunc int ap_add_named_module(const char *name, apr_pool_t *p)
*/
AP_DECLARE(int) ap_add_named_module(const char *name, apr_pool_t *p);
-/**
- * Clear all of the modules from the loaded module list
- * @param p The pool valid for the lifetime of the modules
- * @deffunc void ap_add_named_module(apr_pool_t *p)
- */
-AP_DECLARE(void) ap_clear_module_list(apr_pool_t *p);
/**
* Find the name of the specified module
* @param m The module to get the name for
return NULL;
}
-static const char *add_module_command(cmd_parms *cmd, void *dummy,
- const char *arg)
-{
- const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
- if (err != NULL) {
- return err;
- }
-
- if (!ap_add_named_module(arg, cmd->pool)) {
- return apr_pstrcat(cmd->pool, "Cannot add module via name '", arg,
- "': not in list of loaded modules", NULL);
- }
- *(ap_directive_t **)dummy = NULL;
- return NULL;
-}
-
-static const char *clear_module_list_command(cmd_parms *cmd, void *dummy)
-{
- const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
- if (err != NULL) {
- return err;
- }
-
- ap_clear_module_list(cmd->pool);
- *(ap_directive_t **)dummy = NULL;
- return NULL;
-}
-
static const char *set_server_string_slot(cmd_parms *cmd, void *dummy,
const char *arg)
{
RSRC_CONF|ACCESS_CONF,
"How to work out the ServerName : Port when constructing URLs"),
/* TODO: RlimitFoo should all be part of mod_cgi, not in the core */
-AP_INIT_ITERATE("AddModule", add_module_command, NULL,
- RSRC_CONF, "The name of a module"),
-AP_INIT_NO_ARGS("ClearModuleList", clear_module_list_command, NULL,
- RSRC_CONF, NULL),
/* TODO: ListenBacklog in MPM */
AP_INIT_TAKE1("Include", include_config, NULL,
(RSRC_CONF | ACCESS_CONF | EXEC_ON_READ),
return 0;
}
-/* Clear the internal list of modules, in preparation for starting over. */
-AP_DECLARE(void) ap_clear_module_list(apr_pool_t *p)
-{
- module **m = &top_module;
- module **next_m;
-
- while (*m) {
- next_m = &((*m)->next);
- *m = NULL;
- m = next_m;
- }
-
- apr_hook_deregister_all();
-
- /* This is required; so we add it always. */
- ap_add_named_module("http_core.c", p);
-}
-
/*****************************************************************
*
* Resource, access, and .htaccess config files now parsed by a common