NameVirtualHost has no VirtualHosts

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

 



Hi,

I keep getting a "NameVirtualHost *:80 has no VirtualHosts" warning with
the configuration below. Apache version 2.2.16. It is on server named
"jana", 192.168.1.103, accessible only from my LAN.

I read the following documentation sections:
- Name-based Virtual Host Support
- VirtualHost Examples
- An In-Depth Discussion of Virtual Host Matching

I couldn't see any relevant messages in the error.log
I searched Bugzilla for "NameVirtualHost has no VirtualHosts" and it
answered "Zarro Boogs found."

Please help me by giving your opinion about what might be wrong!

Luc

Content of /etc/apache2/sites-available/default
------------
NameVirtualHost *:80
ServerName jana
ServerAdmin webmaster@localhost
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel debug
CustomLog ${APACHE_LOG_DIR}/access.log combined

WSGIApplicationGroup %{GLOBAL}

<VirtualHost *:80>
  ServerName dsbe.jana
  DocumentRoot /usr/share/apache2/default-site

  <Directory />
     Options FollowSymLinks
     AllowOverride None
  </Directory>

  WSGIDaemonProcess dsbe processes=2 threads=15
  WSGIProcessGroup dsbe	

  WSGIScriptAlias / /usr/local/django/dsbe_eupen/wsgi.py
  Alias /media/ /usr/local/django/dsbe_eupen/media/
  <Location /media/>
     SetHandler none
  </Location>

  DavLockDB /tmp/DavLock

  <Location /media/webdav/>
     DAV On
     # ForceType text/plain
     AuthType Basic
     AuthName "WebDAV dsbe_eupen@jana"
     AuthUserFile /usr/local/django/dsbe_eupen/htpasswd/passwords
     AuthGroupFile /usr/local/django/dsbe_eupen/htpasswd/groups
     #<LimitExcept GET>
     #Require group dav
     #</LimitExcept>
  </Location>

  <Location />
    AuthType Basic
    AuthName "dsbe_eupen@jana"
    AuthUserFile /usr/local/django/dsbe_eupen/htpasswd/passwords
    AuthGroupFile /usr/local/django/dsbe_eupen/htpasswd/groups
    Require group lino
    # AllowOverride None
  </Location>

</VirtualHost>

<VirtualHost *:80>
  ServerName wsl.jana
  DocumentRoot /usr/share/apache2/default-site

  <Directory />
     Options FollowSymLinks
     AllowOverride None
  </Directory>


  WSGIDaemonProcess wsl processes=2 threads=15
  WSGIProcessGroup wsl	

  WSGIScriptAlias / /usr/local/django/wsl/apache/django.wsgi	
  Alias /media/ /usr/local/django/wsl/media/
  <Location /media/>
    SetHandler none
  </Location>

</VirtualHost>

<VirtualHost *:80>

  ServerName aze.jana
  DocumentRoot /usr/share/apache2/default-site

  WSGIApplicationGroup %{GLOBAL}

  WSGIDaemonProcess aze processes=2 threads=15
  WSGIProcessGroup aze

  WSGIScriptAlias / /usr/local/django/aze/wsgi.py

  Alias /media/ /usr/local/django/aze/media/
  <Location /media/>
     SetHandler none
  </Location>

  <Directory /usr/local/django/aze>
  Order deny,allow
  Allow from all
  </Directory>

  <Location />
    AuthType Basic
    AuthName "aze@jana"
    AuthUserFile /usr/local/django/aze/htpasswd/passwords
    AuthGroupFile /usr/local/django/aze/htpasswd/groups
    Require group lino
    # AllowOverride None
  </Location>

</VirtualHost>
------------

---------------------------------------------------------------------
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