From: Rich Bowen Date: Fri, 16 Apr 2010 16:33:20 +0000 (+0000) Subject: Expand the "NameVirtualHost has no VirtualHosts" error message, since it X-Git-Tag: 2.3.6~202 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad563f431c7ce96c62736e4d0a4bec564c4bf24c;p=thirdparty%2Fapache%2Fhttpd.git Expand the "NameVirtualHost has no VirtualHosts" error message, since it 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 --- diff --git a/server/vhost.c b/server/vhost.c index 958409315c3..cc1ae929312 100644 --- a/server/vhost.c +++ b/server/vhost.c @@ -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; }