As of 2.3.11, httpd emits a warning when NameVirtualHost is still
present in the config (cf.
http://svn.apache.org/viewvc?view=revision&revision=1053230).
Can we silence that warning for the default test config? A small change
to TestConfig.pm in Apache::Test is needed... something like the
attached patch. Could someone with the proper karma have a look (and
commit to perl/Apache-Test/trunk, possibly)?
Kaspar
Index: Apache-Test/lib/Apache/TestConfig.pm
===================================================================
--- Apache-Test/lib/Apache/TestConfig.pm (revision 1178706)
+++ Apache-Test/lib/Apache/TestConfig.pm (working copy)
@@ -1240,7 +1240,7 @@
@out_config = ([Listen => '0.0.0.0:' . $port]);
if ($self->{vhosts}->{$module}->{namebased}) {
- push @out_config => [NameVirtualHost => "*:$port"];
+ push @out_config => ["<IfVersion <
2.3.11>\n${indent}${indent}NameVirtualHost" =>
"*:$port\n${indent}</IfVersion>"];
}
}