Re: NameVirtualHost has no VirtualHosts

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

 



Tilt, I got it! Thanks again, Eric, and Aparna.

To try your suggestions I dived more into the details of Apache config
specials on Debian
(http://www.control-escape.com/web/configuring-apache2-debian.html) and
finally found that there was indeed another "NameVirtualHost *:80" in
`/etc/apache2/ports.conf`.
So the solution was simply to remove my NameVirtualHost directive from
`default`.

Luc

On 10.04.2012 14:24, aparna Puram wrote:
> Hi,
> 
> Did u try rebuilding the apache config file using the following script?
> 
> /scripts/rebuildhttpdconf
> 
> 
> On Tue, Apr 10, 2012 at 4:38 PM, Luc Saffre <luc.saffre@xxxxxxx
> <mailto:luc.saffre@xxxxxxx>> wrote:
> 
>     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 -> \
>      ../sites-available/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
>     (/etc/apache2/sites-enabled/000-default:15)
>             port 80 namevhost dsbe.jana
>     (/etc/apache2/sites-enabled/000-default:15)
>             port 80 namevhost wsl.jana
>     (/etc/apache2/sites-enabled/000-default:66)
>             port 80 namevhost aze.jana
>     (/etc/apache2/sites-enabled/000-default:87)
>     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_HAS_SENDFILE
>      -D APR_HAS_MMAP
>      -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
>      -D APR_USE_SYSVSEM_SERIALIZE
>      -D APR_USE_PTHREAD_SERIALIZE
>      -D APR_HAS_OTHER_CHILD
>      -D AP_HAVE_RELIABLE_PIPED_LOGS
>      -D DYNAMIC_MODULE_LIMIT=128
>      -D HTTPD_ROOT="/etc/apache2"
>      -D SUEXEC_BIN="/usr/lib/apache2/suexec"
>      -D DEFAULT_PIDLOG="/var/run/apache2.pid"
>      -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,
>     Luc
>     (still locked, and still hoping for your ideas)
> 
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>     <mailto:users-unsubscribe@xxxxxxxxxxxxxxxx>
>     For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>     <mailto:users-help@xxxxxxxxxxxxxxxx>
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux