]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Expand the "NameVirtualHost has no VirtualHosts" error message, since it
authorRich Bowen <rbowen@apache.org>
Fri, 16 Apr 2010 16:33:20 +0000 (16:33 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 16 Apr 2010 16:33:20 +0000 (16:33 +0000)
seems that we have to explain a dozen times a day what it really means.

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

server/vhost.c

index 958409315c3e5c0057508ffb7a9dcd4e3b87f3cd..cc1ae92931201548ee97df155437630321f9c3f8 100644 (file)
@@ -507,7 +507,9 @@ static void remove_unused_name_vhosts(server_rec *main_s, ipaddr_chain **pic)
 
         if (ic->server == NULL) {
             ap_log_error(APLOG_MARK, APLOG_WARNING, 0, main_s,
-                         "NameVirtualHost %s:%u has no VirtualHosts",
+                         "Either NameVirtualHost %s:%u has no VirtualHosts,"
+                         " or there is more than one identical NameVirtualHost line,"
+                         " or your VirtualHost declarations do not match the NameVirtualHost line",
                          ic->sar->virthost, ic->sar->host_port);
             *pic = ic->next;
         }