[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#322033: apache2: Apache -t reports false warnings about VirtualHosts

Package: apache2
Version: 2.0.54-4
Severity: minor

When Apache is restarted or stopped, the init-script runs 'apache2 -t'
which reports false warnings about unknown virtual hosts. I believe that
the reason for this is that 'apache2 -t' doesn't read the 'Include'
files. If I move my <VirtualHost> to the apache.conf (instead of having
them in the sites-available/ directory) the problem goes away!

My configurations look something like this;

Listen xxx.xxx.xxx.xxx:765
NameVirtualHost xxx.xxx.xxx.xxx:765

<VirtualHost xxx.xxx.xxx.xxx:765>

This would raise the following warning when Apache is either stopped or
restarted by running the init-script:
[Mon Aug 08 22:52:54 2005] [warn] NameVirtualHost xxx.xxx.xxx.xxx:765 has no VirtualHosts

When Apache is started, no warnings are shown! This bug is a bit
annoying since the logrotate-script runs an apache2 restart.

PS. This doesn't seem to happend to port 80 tho. DS.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-686
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)

Versions of packages apache2 depends on:
ii  apache2-mpm-prefork           2.0.54-4   traditional model for Apache2

-- no debconf information

Reply to: