Bug#234615: apache2-common: NameVirtualHost requires _default_ not *
Package: apache2-common
Severity: normal
The [1][2]Apache documentation indicates that when using
NameVirtualHost, the VirtualHost directive should use * (as opposed to
_default_) to match all IP addresses. However my experimentation has
demonstrated that if I have multiple VirtualHost entries, with different
ServerNames, all starting with the line:
<VirtualHost *:80>
Every server name will be matched by the first VirtualHost entry.
However, the documented behavior was achieved by using _default instead:
<VirtualHost _default_:80>
This is either a bug in the implementation, or the documentation.
Charles
1. http://httpd.apache.org/docs-2.0/mod/core.html#virtualhost
2. http://httpd.apache.org/docs-2.0/vhosts/name-based.html
-- System Information:
Debian Release: testing/unstable
Kernel: Linux frogcircus.org 2.4.25-5um #5 Thu Feb 19 14:29:11 EST 2004 i686
Locale: LANG=en_US, LC_CTYPE=en_US
Reply to: