From 400d4e121fecf60f3450a2ef7d5ccf1c992530cb Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Wed, 24 Jul 2024 12:48:10 +0000 Subject: [PATCH] * modules/core/mod_so.c (load_module): Log the file/lineno for a duplicated LoadModule since it's often a symptom of some deeper mis-configuration. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919496 13f79535-47bb-0310-9956-ffa450edef68 --- modules/core/mod_so.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/core/mod_so.c b/modules/core/mod_so.c index f5d18c17404..26ed8cd8212 100644 --- a/modules/core/mod_so.c +++ b/modules/core/mod_so.c @@ -210,8 +210,10 @@ static const char *load_module(cmd_parms *cmd, void *dummy, modi = &modie[i]; if (modi->name != NULL && strcmp(modi->name, modname) == 0) { ap_log_perror(APLOG_MARK, APLOG_WARNING, 0, cmd->pool, APLOGNO(01574) - "module %s is already loaded, skipping", - modname); + "module %s is already loaded, skipping " + "(from LoadModule on line %d of %s)", + modname, cmd->config_file->line_number, + cmd->config_file->name); return NULL; } }