]> granicus.if.org Git - apache/commitdiff
emit the config filename when warning about overlapping aliases
authorAndré Malo <nd@apache.org>
Sat, 13 Mar 2004 21:19:56 +0000 (21:19 +0000)
committerAndré Malo <nd@apache.org>
Sat, 13 Mar 2004 21:19:56 +0000 (21:19 +0000)
Submitted by: Guenter Knauf <eflash gmx.net>
Reviewed by: Dirk-Willem van Gulik

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102949 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_alias.c

index 2cb4c11ef5fee5106dfaba4fa7853b34e47014c3..aaf339c2dda1818494d5158532e7fef4e50d41e1 100644 (file)
@@ -137,9 +137,11 @@ static const char *add_alias_internal(cmd_parms *cmd, void *dummy,
             if (  (!p->regexp &&  alias_matches(f, p->fake) > 0)
                 || (p->regexp && !ap_regexec(p->regexp, f, 0, NULL, 0))) {
                 ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server,
-                             "The %s directive at line %d will probably never "
-                             "match because it overlaps an earlier %sAlias%s.",
-                             cmd->cmd->name, cmd->directive->line_num,
+                             "The %s directive in %s at line %d will probably "
+                             "never match because it overlaps an earlier "
+                             "%sAlias%s.",
+                             cmd->cmd->name, cmd->directive->filename,
+                             cmd->directive->line_num,
                              p->handler ? "Script" : "",
                              p->regexp ? "Match" : "");