httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Saffre <>
Subject Re: [users@httpd] NameVirtualHost has no VirtualHosts
Date Tue, 10 Apr 2012 11:08:31 GMT
Thanks, Eric and Rainer, for your replies.

On 10.04.2012 10:26, Rainer Frey wrote:
> 2 ideas:
> * the default site is not enabled (see /etc/apache2/sites-enabled - there should be a
000-default symlink)
> * your apache starts with a completely different config

I forget to mention that I had tested that possibility by putting some
deliberate syntax error into the config file. This produced the expected
error messages. Also the following seems correct and simple:

# ls -l /etc/apache2/sites-enabled/
total 0
lrwxrwxrwx 1 root root 26 Jun  7  2011 000-default -> \

And to answer to Eric's suggestion, no, there's no accidental second
NameVirtualHost directive:

# grep NameVirtual /etc/apache2/sites-enabled/*
NameVirtualHost *:80

> You can verify with apachectl -S and apachectl -V

Good idea. But also here I cannot see anything anormal. Maybe somebody
else does:

# apachectl -S
[Tue Apr 10 10:50:43 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80                   is a NameVirtualHost
         default server dsbe.jana
         port 80 namevhost dsbe.jana
         port 80 namevhost wsl.jana
         port 80 namevhost aze.jana
Syntax OK

# apachectl -V
Server version: Apache/2.2.16 (Debian)
Server built:   Sep 25 2011 22:18:56
Server's Module Magic Number: 20051115:24
Server loaded:  APR 1.4.2, APR-Util 1.3.9
Compiled using: APR 1.4.2, APR-Util 1.3.9
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D HTTPD_ROOT="/etc/apache2"
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="mime.types"
 -D SERVER_CONFIG_FILE="apache2.conf"

Best regards,
(still locked, and still hoping for your ideas)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message