You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by sterling <st...@covalent.net> on 2001/10/16 20:11:01 UTC
[PATCH] Allow LoadFile to be run before LoadModule
It looks to me like LoadModule is run while parsing the config file, and
LoadFile is run much later - this makes it hard to require files are
loaded before modules.
here is a patch to fix it
sterling
Index: modules/mappers/mod_so.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/mappers/mod_so.c,v
retrieving revision 1.43
diff -u -r1.43 mod_so.c
--- modules/mappers/mod_so.c 2001/09/18 22:13:57 1.43
+++ modules/mappers/mod_so.c 2001/10/16 18:01:19
@@ -337,7 +337,7 @@
static const command_rec so_cmds[] = {
AP_INIT_TAKE2("LoadModule", load_module, NULL, RSRC_CONF | EXEC_ON_READ,
"a module name and the name of a shared object file to load it from"),
- AP_INIT_ITERATE("LoadFile", load_file, NULL, RSRC_CONF,
+ AP_INIT_ITERATE("LoadFile", load_file, NULL, RSRC_CONF | EXEC_ON_READ,
"shared object file or library to load into the server at runtime"),
{ NULL }
};