FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-23-2011, 08:25 AM
"Gorka"
 
Default Error restarting apache2

By the time I restart apache2 there is the following output ...

Restarting web server: apache2[Fri Sep 23 10:05:38 2011] [warn]
NameVirtualHost *:80 has no VirtualHosts
... waiting [Fri Sep 23 10:05:39 2011] [warn] NameVirtualHost *:80 has no
VirtualHosts
.

Everything seems to work properly, but I'd like to avoid this error message.
I know there is something wrong with the setup, but don't have idea what it
is.
This is the content of my /etc/apache2/sites-enabled/000-default ...

#Listen 80

NameVirtualHost *:80

# PETICIONES POR DEFECTO.

<VirtualHost *:80>
DocumentRoot /var/www/desarrollo/
ServerAdmin webmaster@localhost
DirectoryIndex index.php index.html index.htm default.html default.htm
<Directory />
Options -FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/desarrollo/>
Options -Indexes -FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
TransferLog /var/log/apache2/access.log
ErrorLog /var/log/apache2/error.log
</VirtualHost>

# MATCHINGS DE SERVERNAME.

<VirtualHost *:80>
ServerName www.laweb.com
DocumentRoot /var/www/publica/
ServerAdmin webmaster@localhost
DirectoryIndex index.php index.html index.htm default.html default.htm
<Directory />
Options -FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/publica/>
Options -Indexes -FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
Options Includes
AllowOverride All
</Directory>
TransferLog /var/log/apache2/www.laweb.com-access.log
ErrorLog /var/log/apache2/www.laweb.com-error.log
</VirtualHost>

<VirtualHost *:80>
ServerName www.laweb.es
DocumentRoot /var/www/publica/
ServerAdmin webmaster@localhost
DirectoryIndex index.php index.html index.htm default.html default.htm
<Directory />
Options -FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/publica/>
Options -Indexes -FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
Options Includes
AllowOverride All
</Directory>
TransferLog /var/log/apache2/www.laweb.es-access.log
ErrorLog /var/log/apache2/www.laweb.es-error.log
</VirtualHost>

<VirtualHost *:80>
ServerName 10.0.0.100
DocumentRoot /var/www/
ServerAdmin webmaster@localhost
DirectoryIndex index.php index.html index.htm default.html default.htm
<Directory />
Options -FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options -Indexes FollowSymLinks -MultiViews
AllowOverride None
Order allow,deny
allow from all
Options Includes
AllowOverride All
</Directory>
TransferLog /var/log/apache2/10.0.0.100-access.log
ErrorLog /var/log/apache2/10.0.0.100-error.log
</VirtualHost>




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 064601cc79ca$50b055b0$f2110110$@yahoo.es">http://lists.debian.org/064601cc79ca$50b055b0$f2110110$@yahoo.es
 
Old 09-23-2011, 11:45 AM
Camaleón
 
Default Error restarting apache2

On Fri, 23 Sep 2011 10:25:12 +0200, Gorka wrote:

> By the time I restart apache2 there is the following output ...
>
> Restarting web server: apache2[Fri Sep 23 10:05:38 2011] [warn]
> NameVirtualHost *:80 has no VirtualHosts
> ... waiting [Fri Sep 23 10:05:39 2011] [warn] NameVirtualHost *:80 has
> no
> VirtualHosts
> .
>
> Everything seems to work properly, but I'd like to avoid this error
> message. I know there is something wrong with the setup, but don't have
> idea what it is.
> This is the content of my /etc/apache2/sites-enabled/000-default ...
>
> #Listen 80
>
> NameVirtualHost *:80

(...)

Gorka, just to compare setups... I have those variables enabled and set
at "/etc/apache2/ports.conf":

Listen 80
NameVirtualHost *:80

The site files look like yours (with just "<VirtualHost>" containers on
them). Besides, I added at "/etc/hosts" the IP of the own server, not
sure if that can make any difference though...

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2011.09.23.11.45.50@gmail.com">http://lists.debian.org/pan.2011.09.23.11.45.50@gmail.com
 
Old 09-23-2011, 04:12 PM
"Gorka"
 
Default Error restarting apache2

> -----Mensaje original-----
> De: Camaleón [mailto:noelamac@gmail.com]
> Enviado el: viernes, 23 de septiembre de 2011 13:46
> Para: debian-user@lists.debian.org
> Asunto: Re: Error restarting apache2
>
> On Fri, 23 Sep 2011 10:25:12 +0200, Gorka wrote:
>
> > By the time I restart apache2 there is the following output ...
> >
> > Restarting web server: apache2[Fri Sep 23 10:05:38 2011] [warn]
> > NameVirtualHost *:80 has no VirtualHosts ... waiting [Fri Sep 23
> > 10:05:39 2011] [warn] NameVirtualHost *:80 has no VirtualHosts .
> >
> > Everything seems to work properly, but I'd like to avoid this error
> > message. I know there is something wrong with the setup, but don't
> > have idea what it is.
> > This is the content of my /etc/apache2/sites-enabled/000-default ...
> >
> > #Listen 80
> >
> > NameVirtualHost *:80
>
> (...)
>
> Gorka, just to compare setups... I have those variables enabled and set at
> "/etc/apache2/ports.conf":
>
> Listen 80
> NameVirtualHost *:80
>
> The site files look like yours (with just "<VirtualHost>" containers on them).
> Besides, I added at "/etc/hosts" the IP of the own server, not sure if that can
> make any difference though...
>
> Greetings,
>
> --
> Camaleón
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/pan.2011.09.23.11.45.50@gmail.com

Eventually, It seems that line ...

NameVirtualHost *:80

... was no needed.
Thank you, Camaleón.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 077a01cc7a0b$aa42df80$fec89e80$@yahoo.es">http://lists.debian.org/077a01cc7a0b$aa42df80$fec89e80$@yahoo.es
 

Thread Tools




All times are GMT. The time now is 01:26 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org