config.c revision d6e81217d873dc3b87fc4ffa5fbac2fad4191a15
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* http_config.c: once was auxillary functions for reading httpd's config
* file and converting filenames into a namespace
*
* Rob McCool
*
* Wall-to-wall rewrite for Apache... commands which are part of the
* server core can now be found next door in "http_core.c". Now contains
* general command loop, and functions which do bookkeeping for the new
* Apache config stuff (modules and configuration vectors).
*
* rst
*
*/
#include "apr.h"
#include "apr_strings.h"
#include "apr_portable.h"
#include "apr_file_io.h"
#include "apr_fnmatch.h"
#define APR_WANT_STDIO
#define APR_WANT_STRFUNC
#include "apr_want.h"
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_protocol.h"
#include "http_core.h"
#include "http_log.h" /* for errors in parse_htaccess */
#include "http_request.h" /* for default_handler (see invoke_handler) */
#include "http_main.h"
#include "http_vhost.h"
#include "util_cfgtree.h"
#include "mpm.h"
)
apr_pool_t *ptemp),
(pconf, s))
/* During the course of debugging I expanded this macro out, so
* rather than remove all the useful information there is in the
* following lines, I'm going to leave it here in case anyone
* else finds it useful.
*
* Ben has looked at it and thinks it correct :)
*
AP_DECLARE(int) ap_hook_post_config(ap_HOOK_post_config_t *pf,
const char * const *aszPre,
const char * const *aszSucc,
int nOrder)
{
ap_LINK_post_config_t *pHook;
if (!_hooks.link_post_config) {
_hooks.link_post_config = apr_array_make(apr_hook_global_pool, 1,
sizeof(ap_LINK_post_config_t));
apr_hook_sort_register("post_config", &_hooks.link_post_config);
}
pHook = apr_array_push(_hooks.link_post_config);
pHook->pFunc = pf;
pHook->aszPredecessors = aszPre;
pHook->aszSuccessors = aszSucc;
pHook->nOrder = nOrder;
pHook->szName = apr_hook_debug_current;
if (apr_hook_debug_enabled)
apr_hook_debug_show("post_config", aszPre, aszSucc);
}
AP_DECLARE(apr_array_header_t *) ap_hook_get_post_config(void) {
return _hooks.link_post_config;
}
AP_DECLARE(int) ap_run_post_config(apr_pool_t *pconf,
apr_pool_t *plog,
apr_pool_t *ptemp,
server_rec *s)
{
ap_LINK_post_config_t *pHook;
int n;
if(!_hooks.link_post_config)
return;
pHook = (ap_LINK_post_config_t *)_hooks.link_post_config->elts;
for (n = 0; n < _hooks.link_post_config->nelts; ++n)
pHook[n].pFunc (pconf, plog, ptemp, s);
}
*/
(pchild, s))
(r), DECLINED)
AP_IMPLEMENT_HOOK_VOID(optional_fn_retrieve, (void), ())
/****************************************************************
*
* We begin with the functions which deal with the linked list
* of modules which control just about all of the server operation.
*/
/* total_modules is the number of modules that have been linked
* into the server.
*/
static int total_modules = 0;
/* dynamic_modules is the number of modules that have been added
* after the pre-loaded ones have been set up. It shouldn't be larger
* than DYNAMIC_MODULE_LIMIT.
*/
static int dynamic_modules = 0;
typedef int (*handler_func)(request_rec *);
typedef void *(*dir_maker_func)(apr_pool_t *, char *);
typedef void *(*merger_func)(apr_pool_t *, void *, void *);
/* maximum nesting level for config directories */
#ifndef AP_MAX_INCLUDE_DIR_DEPTH
#define AP_MAX_INCLUDE_DIR_DEPTH (128)
#endif
/* Dealing with config vectors. These are associated with per-directory,
* per-server, and per-request configuration, and have a void* pointer for
* each modules. The nature of the structure pointed to is private to the
* module in question... the core doesn't (and can't) know. However, there
* are defined interfaces which allow it to create instances of its private
* per-directory and per-server structures, and to merge the per-directory
* structures of a directory and its subdirectory (producing a new one in
* which the defaults applying to the base directory have been properly
* overridden).
*/
{
void *conf_vector = apr_pcalloc(p, sizeof(void *) *
return conf_vector;
}
{
void **conf_vector = apr_pcalloc(p, sizeof(void *) *
if (df)
}
return (ap_conf_vector_t *)conf_vector;
}
{
void **base_vector = (void **)base;
void **new_vector = (void **)new_conf;
int i = modp->module_index;
if (!new_vector[i]) {
conf_vector[i] = base_vector[i];
}
else {
if (df && base_vector[i]) {
}
else
conf_vector[i] = new_vector[i];
}
}
return (ap_conf_vector_t *)conf_vector;
}
{
void **conf_vector = apr_pcalloc(p, sizeof(void *) *
if (modp->create_server_config)
}
return (ap_conf_vector_t *)conf_vector;
}
{
/* Can reuse the 'virt' vector for the spine of it, since we don't
* have to deal with the moral equivalent of .htaccess files here...
*/
void **base_vector = (void **)base;
void **virt_vector = (void **)virt;
int i = modp->module_index;
if (!virt_vector[i])
virt_vector[i] = base_vector[i];
else if (df)
}
}
{
return create_empty_config(p);
}
{
return create_empty_config(p);
}
{
return create_empty_config(p);
}
{
while (filters) {
return result;
}
}
}
return OK;
}
{
const char *handler;
const char *p;
int result;
const char *old_handler = r->handler;
const char *ignore;
/*
* The new insert_filter stage makes the most sense here. We only use
* it when we are going to run the request, so we must insert filters
* if any are available. Since the goal of this phase is to allow all
* modules to insert a filter if they want to, this filter returns
* void. I just can't see any way that this filter can reasonably
* fail, either your modules inserts something or it doesn't. rbb
*/
/* Before continuing, allow each filter that is in the two chains to
* run their init function to let them do any magic before we could
* start generating data.
*/
return result;
}
return result;
}
if (!r->handler) {
p - handler + 1);
/* MIME type arguments */
--p2; /* strip trailing spaces */
*p2='\0';
}
}
result = ap_run_handler(r);
r->handler = old_handler;
}
&& !ap_is_HTTP_VALID_RESPONSE(result)) {
/* If a module is deliberately returning something else
* (request_rec in non-HTTP or proprietary extension?)
* let it set a note to allow it explicitly.
* Otherwise, a return code that is neither reserved nor HTTP
* is a bug, as in PR#31759.
*/
if (!ignore) {
"Handler for %s returned invalid result code %d",
}
}
}
{
int methnum;
/*
* A method number either hardcoded into apache or
* added by a module and registered.
*/
}
return 0; /* not found */
}
{
if (m->register_hooks) {
if (getenv("SHOW_HOOKS")) {
}
apr_hook_debug_current = m->name;
m->register_hooks(p);
}
}
typedef struct ap_mod_list_struct ap_mod_list;
struct ap_mod_list_struct {
struct ap_mod_list_struct *next;
module *m;
const command_rec *cmd;
};
{
return APR_SUCCESS;
}
{
module **m;
ap_config_hash = apr_hash_make(p);
if (add_prelinked) {
for (m = ap_prelinked_modules; *m != NULL; m++) {
ap_add_module_commands(*m, p);
}
}
}
{
const command_rec *cmd;
char *dir;
if (ap_config_hash == NULL) {
rebuild_conf_hash(p, 0);
}
mln->m = m;
++cmd;
}
}
/* One-time setup for precompiled modules --- NOT to be done on restart */
{
/* This could be called from a LoadModule httpd.conf command,
* after the file has been linked and the module structure within it
* teased out...
*/
if (m->version != MODULE_MAGIC_NUMBER_MAJOR) {
return apr_psprintf(p, "Module \"%s\" is not compatible with this "
"version of Apache (found %d, need %d). Please "
"contact the vendor for the correct version.",
}
m->next = ap_top_module;
ap_top_module = m;
}
if (m->module_index == -1) {
m->module_index = total_modules++;
if (dynamic_modules > DYNAMIC_MODULE_LIMIT) {
return apr_psprintf(p, "Module \"%s\" could not be loaded, "
"because the dynamic module limit was "
"reached. Please increase "
"DYNAMIC_MODULE_LIMIT and recompile.", m->name);
}
}
/* Some C compilers put a complete path into __FILE__, but we want
* only the filename (e.g. mod_includes.c). So check for path
* components (Unix and DOS), and remove them.
*/
#ifdef _OSD_POSIX
/* __FILE__ =
*/
/* We cannot fix the string in-place, because it's const */
}
#endif /*_OSD_POSIX*/
ap_add_module_commands(m, p);
/* FIXME: is this the right place to call this?
* It doesn't appear to be
*/
ap_register_hooks(m, p);
return NULL;
}
/*
* remove_module undoes what add_module did. There are some caveats:
* when the module is removed, its slot is lost so all the current
* per-dir and per-server configurations are invalid. So we should
* only ever call this function when you are invalidating almost
* all our current data. I.e. when doing a restart.
*/
{
if (modp == m) {
/* We are the top module, special case */
}
else {
/* Not the top module, find use. When found modp will
* point to the module _before_ us in the list
*/
}
if (!modp) {
/* Uh-oh, this module doesn't exist */
"Cannot remove module %s: not found in module list",
m->name);
return;
}
/* Eliminate us from the module list */
}
* be unnecessary */
}
{
module **m;
const char *error;
/*
* Add module pointer to top of chained module list
*/
if (error) {
return error;
}
/*
* And module pointer to list of loaded modules
*
* Notes: 1. ap_add_module() would already complain if no more space
* exists for adding a dynamically loaded module
* 2. ap_add_module() accepts double inclusion, so we have
* to accept this, too.
*/
for (m = ap_loaded_modules; *m != NULL; m++)
;
*m++ = mod;
*m = NULL;
return NULL;
}
{
module **m;
int done;
/*
* Remove module pointer from chained module list
*/
/*
* Remove module pointer from list of loaded modules
*
* Note: 1. We cannot determine if the module was successfully
* removed by ap_remove_module().
* 2. We have not to complain explicity when the module
* is not found because ap_remove_module() did it
* for us already.
*/
done = 1;
else
*m++ = *m2;
}
*m = NULL;
}
{
module **m;
const char *error;
/*
* Initialise total_modules variable and module indices
*/
total_modules = 0;
for (m = ap_preloaded_modules; *m != NULL; m++)
(*m)->module_index = total_modules++;
/*
* Initialise list of loaded modules
*/
if (ap_loaded_modules == NULL) {
return "Ouch! Out of memory in ap_setup_prelinked_modules()!";
}
*m2++ = *m++;
/*
* Initialize chain of linked (=activate) modules
*/
for (m = ap_prelinked_modules; *m != NULL; m++) {
if (error) {
return error;
}
}
return NULL;
}
{
return m->name;
}
{
return modp;
}
return NULL;
}
/*****************************************************************
*
* Resource, access, and .htaccess config files now parsed by a common
* command loop.
*
* Let's begin with the basics; parsing the line and
* invoking the function...
*/
#define AP_MAX_ARGC 64
{
case RAW_ARGS:
#ifdef RESOLVE_ENV_PER_TOKEN
#endif
case TAKE_ARGV:
{
char *argv[AP_MAX_ARGC];
int argc = 0;
do {
break;
}
argc++;
}
case NO_ARGS:
if (*args != 0)
NULL);
case TAKE1:
if (*w == '\0' || *args != 0)
case TAKE2:
case TAKE12:
if (*w == '\0' || *args != 0)
case TAKE3:
case TAKE23:
" takes two or three arguments",
case TAKE123:
if (*w == '\0' || *args != 0)
" takes one, two or three arguments",
case TAKE13:
" takes one or three arguments",
case ITERATE:
return errmsg;
}
return errmsg;
case ITERATE2:
if (*w == '\0' || *args == 0)
" requires at least two arguments",
return errmsg;
}
return errmsg;
case FLAG:
NULL);
default:
" is improperly configured internally (server bug)",
NULL);
}
}
const command_rec *cmds)
{
return cmds;
++cmds;
}
return NULL;
}
{
const command_rec *cmdp;
return cmdp;
}
}
return NULL;
}
const char *section,
{
/* ### need to fix the create_dir_config functions' prototype... */
}
}
return section_config;
}
{
const char *args;
char *cmd_name;
const command_rec *cmd;
if (*l == '#' || *l == '\0')
return NULL;
args = l;
#else
#endif
if (*cmd_name == '\0') {
/* Note: this branch should not occur. An empty line should have
* triggered the exit further above.
*/
return NULL;
}
if (*lastc == '>') {
*lastc = '\0' ;
}
args = ">";
}
}
&sub_tree, *curr_parent);
if (*current) {
}
else {
if (*curr_parent) {
}
if (*current) {
}
}
if (*current) {
if (!*conftree) {
/* Before walking *current to the end of the list,
* set the head to *current.
*/
}
}
}
return retval;
}
}
if (cmd_name[0] == '<') {
}
else if (*curr_parent == NULL) {
return apr_pstrcat(p, cmd_name,
" section", NULL);
}
else {
if (*bracket != '>') {
return apr_pstrcat(p, cmd_name,
"> directive missing closing '>'", NULL);
}
*bracket = '\0';
return apr_pstrcat(p, "Expected </",
}
*bracket = '>';
/* done with this section; move up a level */
*current = *curr_parent;
}
}
else {
}
return retval;
}
char *orig_directive)
{
char *l;
char *bracket;
const char *retval;
/* Since this function can be called recursively, allocate
* the temporary 8k string buffer from the temp_pool rather
* than the stack to avoid over-running a fixed length stack.
*/
&& (*curr_parent == NULL)) {
break;
}
curr_parent, &sub_tree);
return retval;
sub_tree = *curr_parent;
}
}
}
return NULL;
}
{
const command_rec *cmd;
"', perhaps misspelled or defined by a module "
"not included in the server configuration",
NULL);
}
ml->m,
const char *retval;
/* Once was enough? */
continue;
}
/* If the directive in error has already been set, don't
* replace it. Otherwise, an error inside a container
* will be reported as occuring on the first line of the
* container.
*/
if (!parms->err_directive) {
}
return retval;
}
}
return NULL;
}
{
/* scan through all directives, executing each one */
const char *errmsg;
/* actually parse the command and execute the correct function */
/* restore the context (just in case) */
return errmsg;
}
}
return NULL;
}
{
const char *errmsg;
}
}
return errmsg;
*conftree = curr_parent;
}
}
}
if (curr_parent != NULL) {
errmsg = "";
while (curr_parent != NULL) {
}
return errmsg;
}
return NULL;
}
/*
* Generic command functions...
*/
void *struct_ptr,
const char *arg)
{
return NULL;
}
void *struct_ptr,
const char *arg)
{
char *endptr;
"Invalid value for directive %s, expected integer",
}
return error_str;
}
void *struct_ptr,
const char *arg_)
{
return NULL;
}
void *struct_ptr_v, int arg)
{
char *struct_ptr = (char *)struct_ptr_v;
return NULL;
}
const char *arg)
{
/* Prepend server_root to relative arg.
* This allows most args to be independent of server_root,
* so the server can be moved or mirrored with less pain.
*/
const char *path;
if (!path) {
}
return NULL;
}
void *struct_ptr,
const char *arg)
{
}
/*****************************************************************
*
* Reading whole config files...
*/
static cmd_parms default_parms =
{
|| APR_STATUS_IS_ENOTDIR(rv))) {
return newpath;
}
else {
return NULL;
}
}
{
char l[MAX_STRING_LEN];
const char *args;
char *cmd_name;
args = l;
#else
#endif
if (cmd_name[0] == '<') {
}
return NULL; /* found end of container */
}
else {
const char *msg;
}
return msg;
}
}
}
}
NULL);
}
{
const command_rec *cmd;
"', perhaps misspelled or defined by a module "
"not included in the server configuration",
NULL);
}
const char *retval;
return retval;
}
}
return NULL;
}
/* This structure and the following functions are needed for the
* table-based config file reading. They are passed to the
* cfg_open_custom() routine.
*/
/* Structure to be passed to cfg_open_custom(): it contains an
* index which is incremented from 0 to nelts on each call to
* cfg_getline() (which in turn calls arr_elts_getstr())
* and an apr_array_header_t pointer for the string array.
*/
typedef struct {
int curr_idx;
/* arr_elts_getstr() returns the next line from the string array. */
{
/* End of array reached? */
return NULL;
/* return the line */
bufsiz);
return buf;
}
/* arr_elts_close(): dummy close routine (makes sure no more lines can be read) */
static int arr_elts_close(void *param)
{
return 0;
}
static const char *process_command_config(server_rec *s,
apr_pool_t *p,
{
const char *errmsg;
if (ap_config_hash == NULL) {
}
if (errmsg) {
NULL);
}
return NULL;
}
typedef struct {
char *fname;
} fnames;
{
}
static const char *process_resource_config_nofnmatch(server_rec *s,
const char *fname,
apr_pool_t *p,
unsigned depth)
{
const char *error;
if (ap_is_directory(p, fname)) {
int current;
if (++depth > AP_MAX_INCLUDE_DIR_DEPTH) {
return apr_psprintf(p, "Directory %s exceeds the maximum include "
"directory nesting level of %u. You have "
"probably a recursion somewhere.", path,
}
/*
* first course of business is to grok all the directory
* entries here and store 'em away. Recall we need full pathnames
* for this.
*/
if (rv != APR_SUCCESS) {
char errmsg[120];
return apr_psprintf(p, "Could not open config directory %s: %s",
}
/* strip out '.' and '..' */
}
}
if (candidates->nelts != 0) {
sizeof(fnames), fname_alphasort);
/*
* Now recurse these... we handle errors and subdirectories
* via the recursion, which is nice
*/
depth);
if (error) {
return error;
}
}
}
return NULL;
}
/* GCC's initialization extensions are soooo nice here... */
if (rv != APR_SUCCESS) {
char errmsg[120];
return apr_psprintf(p, "Could not open configuration file %s: %s",
}
if (error) {
return apr_psprintf(p, "Syntax error on line %d of %s: %s",
}
return NULL;
}
const char *fname,
apr_pool_t *p,
{
/* XXX: lstat() won't work on the wildcard pattern...
*/
/* don't require conf/httpd.conf if we have a -C or -c switch */
return NULL;
}
if (!apr_fnmatch_test(fname)) {
0);
}
else {
int current;
*pattern++ = '\0';
if (apr_fnmatch_test(path)) {
return apr_pstrcat(p, "Wildcard patterns not allowed in Include ",
}
if (!ap_is_directory(p, path)){
NULL);
}
if (!apr_fnmatch_test(pattern)) {
return apr_pstrcat(p, "Must include a wildcard pattern for "
}
/*
* first course of business is to grok all the directory
* entries here and store 'em away. Recall we need full pathnames
* for this.
*/
if (rv != APR_SUCCESS) {
char errmsg[120];
return apr_psprintf(p, "Could not open config directory %s: %s",
}
/* strip out '.' and '..' */
APR_FNM_PERIOD) == APR_SUCCESS)) {
}
}
if (candidates->nelts != 0) {
const char *error;
sizeof(fnames), fname_alphasort);
/*
* Now recurse these... we handle errors and subdirectories
* via the recursion, which is nice
*/
conftree, p,
ptemp, 0);
if (error) {
return error;
}
}
}
}
return NULL;
}
apr_pool_t *p,
{
const char *errmsg;
if (errmsg) {
"Syntax error on line %d of %s:",
"%s", errmsg);
return HTTP_INTERNAL_SERVER_ERROR;
}
return OK;
}
request_rec *r, int override,
int override_opts,
const char *d, const char *access_name)
{
ap_configfile_t *f = NULL;
const struct htaccess_result *cache;
struct htaccess_result *new;
/* firstly, search cache */
return OK;
}
}
/* loop through the access names and find the first one */
while (access_name[0]) {
/* AFAICT; there is no use of the actual 'filename' against
* any canonicalization, so we will simply take the given
* name, ignoring case sensitivity and aliases
*/
if (status == APR_SUCCESS) {
const char *errmsg;
parms.config_file = f;
ap_cfg_closefile(f);
if (errmsg) {
return HTTP_INTERNAL_SERVER_ERROR;
}
break;
}
else {
if (!APR_STATUS_IS_ENOENT(status)
&& !APR_STATUS_IS_ENOTDIR(status)) {
"%s pcfg_openfile: unable to check htaccess file, "
"ensure it is readable",
filename);
"Server unable to read htaccess file, denying "
"access to be safe");
return HTTP_FORBIDDEN;
}
}
}
/* cache it */
/* add to head of list */
return OK;
}
const char *hostname,
server_rec **ps)
{
/* TODO: this crap belongs in http_core */
s->server_admin = NULL;
s->server_hostname = NULL;
s->server_scheme = NULL;
s->error_fname = NULL;
s->timeout = 0;
s->keep_alive_timeout = 0;
s->keep_alive = -1;
s->keep_alive_max = -1;
/* useful default, otherwise we get a port of 0 on redirects */
s->is_virtual = 1;
s->module_config = create_empty_config(p);
s->lookup_defaults = ap_create_per_dir_config(p);
*ps = s;
return ap_parse_vhost_addrs(p, hostname, s);
}
{
if (virt->keep_alive_timeout == 0)
/* XXX: this is really something that should be dealt with by a
* post-config api phase
*/
}
}
/*****************************************************************
*
* Getting *everything* configured...
*/
static void init_config_globals(apr_pool_t *p)
{
/* Global virtual host hash bucket pointers. Init to null. */
}
{
apr_file_open_stderr(&s->error_log, p);
s->port = 0;
s->server_admin = DEFAULT_ADMIN;
s->server_hostname = NULL;
s->server_scheme = NULL;
s->error_fname = DEFAULT_ERRORLOG;
s->loglevel = DEFAULT_LOGLEVEL;
s->keep_alive = 1;
/* NOT virtual host; don't match any real network interface */
s->module_config = create_server_config(p, s);
return s;
}
const char *filename,
{
/* All server-wide config files now have the SAME syntax... */
p, ptemp);
if (error) {
return NULL;
}
/* process_command_config may change the ServerRoot so
* compute this config file name afterwards.
*/
if (!confname) {
filename);
return NULL;
}
if (error) {
return NULL;
}
p, ptemp);
if (error) {
return NULL;
}
return s;
}
module *m)
{
if (m->create_server_config)
(*m->create_server_config)(p, s));
if (m->create_dir_config)
(*m->create_dir_config)(p, NULL));
}
{
module *m;
for (m = ap_top_module; m; m = m->next) {
if (m->rewrite_args) {
(*m->rewrite_args)(process);
}
}
}
/********************************************************************
* Configuration directives are restricted in terms of where they may
* to the bitmask req_override in the command_rec structure.
* If any of the overrides set in req_override are also allowed in the
* context in which the command is read, then the command is allowed.
* The context is determined as follows:
*
* inside *.conf --> override = (RSRC_CONF|OR_ALL)&~(OR_AUTHCFG|OR_LIMIT);
* within <Directory> or <Location> --> override = OR_ALL|ACCESS_CONF;
* within .htaccess --> override = AllowOverride for current directory;
*
* the result is, well, a rather confusing set of possibilities for when
* a particular directive is allowed to be used. This procedure prints
* in English where the given (pc) directive can be used.
*/
{
int n = 0;
printf("\tAllowed in *.conf ");
printf("anywhere");
}
printf("only outside <Directory>, <Files> or <Location>");
}
else {
printf("only inside <Directory>, <Files> or <Location>");
}
/* Warn if the directive is allowed inside <Directory> or .htaccess
* but module doesn't support per-dir configuration
*/
printf(" [no per-dir config]");
printf(" and in .htaccess\n\twhen AllowOverride");
printf(" isn't None");
}
else {
printf(" includes ");
if (n++)
printf(" or ");
printf("AuthConfig");
}
if (n++)
printf(" or ");
printf("Limit");
}
if (n++)
printf(" or ");
printf("Options");
}
if (n++)
printf(" or ");
printf("FileInfo");
}
if (n++)
printf(" or ");
printf("Indexes");
}
}
}
printf("\n");
}
/* Show the preloaded configuration directives, the help string explaining
* the directive arguments, in what module they are handled, and in
* what parts of the configuration they are allowed. Used for httpd -L.
*/
AP_DECLARE(void) ap_show_directives(void)
{
const command_rec *pc;
int n;
for (n = 0; ap_loaded_modules[n]; ++n) {
}
}
}
/* Show the preloaded module names. Used for httpd -l. */
AP_DECLARE(void) ap_show_modules(void)
{
int n;
printf("Compiled in modules:\n");
for (n = 0; ap_loaded_modules[n]; ++n)
}
AP_DECLARE(const char *) ap_show_mpm(void)
{
return MPM_NAME;
}