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

Bug#322033: marked as done (apache2: Apache -t reports false warnings about VirtualHosts)



Your message dated Tue, 17 Oct 2006 09:58:03 +0200
with message-id <20061017075803.GA3527@keid.carnet.hr>
and subject line Apache -t reports false warnings about VirtualHosts
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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;

ports.conf
----
Listen xxx.xxx.xxx.xxx:765
NameVirtualHost xxx.xxx.xxx.xxx:765
----

sites-available/site.conf
----
<VirtualHost xxx.xxx.xxx.xxx:765>
[...]
</VirtualHost>
----

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


--- End Message ---
--- Begin Message ---
On Mon, Oct 16, 2006 at 09:47:18PM +0200, Örjan Persson wrote:
> >> Removing the <IfDefine> or adding them around the NameVirtualHost's
> >> directive solves the problem.
> >
> >Why would you want to have NameVirtualHost settings for :443 not enclosed
> >in the same SSL conditionals? Wasn't this a simple semantic problem with
> >your own configuration?
> 
> Ah, you are absolutly correct. Why would I? :)
> 
> Changing it works of course much better. Thanks!

Good. Let me close the bug report then. :)

-- 
     2. That which causes joy or happiness.

--- End Message ---

Reply to: