[core] warn dynamic mods listed before staticfile

warn if dynamic modules listed before mod_staticfile in server.modules
This commit is contained in:
Glenn Strauss 2023-08-03 01:08:38 -04:00
parent 140c6e31a8
commit 1fdf2b29d1
1 changed files with 4 additions and 0 deletions

View File

@ -463,6 +463,10 @@ static void config_compat_module_load (server *srv) {
sizeof("mod_wstunnel")-1)) {
if (NULL == dyn_name)
dyn_name = m->ptr;
if (!append_mod_staticfile)
log_error(srv->errh, __FILE__, __LINE__,
"Warning: %s should be listed in server.modules"
" before mod_staticfile", m->ptr);
}
}