summaryrefslogtreecommitdiffstats
path: root/server/vhost.c
diff options
context:
space:
mode:
authorRich Bowen <rbowen@apache.org>2010-04-16 18:33:20 +0200
committerRich Bowen <rbowen@apache.org>2010-04-16 18:33:20 +0200
commitad563f431c7ce96c62736e4d0a4bec564c4bf24c (patch)
treea789832eda9e30bc279a636c17f5b089827da391 /server/vhost.c
parentgenerated doc changes (diff)
downloadapache2-ad563f431c7ce96c62736e4d0a4bec564c4bf24c.tar.xz
apache2-ad563f431c7ce96c62736e4d0a4bec564c4bf24c.zip
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
Diffstat (limited to 'server/vhost.c')
-rw-r--r--server/vhost.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/vhost.c b/server/vhost.c
index 958409315c..cc1ae92931 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;
}