RE: question about Apache



Derek,

Thanks for shaping up my Apache file. I am down to the wire now. Let's see
if she rips and snorts. Grin!



Scott Berry
Email: sberry@xxxxxxxxxxx
-----Original Message-----
From: ubuntu-users-bounces@xxxxxxxxxxxxxxxx
[mailto:ubuntu-users-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Derek Broughton
Sent: Friday, February 29, 2008 9:58 AM
To: ubuntu-users@xxxxxxxxxxxxxxxx
Subject: Re: question about Apache

Scott Berry wrote:

Hello there,

I have a question about Apache I am unsure of.
When I run /etc/init.d/apache2 restart I get the following message:

root@Yellobo:~# /etc/init.d/apache2 restart

* Restarting web server apache2

[Fri Feb 29 05:25:42 2008] [warn] NameVirtualHost *:0 has no VirtualHosts

[Fri Feb 29 05:25:55 2008] [warn] NameVirtualHost *:0 has no VirtualHosts

You know this is just a warning, right? I had it for years. Turns out the
simple fix is to make sure you only have ONE "NameVirtualHost" statement in
your config files.

NameVirtualHost *:80

That _should_ be "NameVirtualHost *" - but, of course you don't need it and
don't want it if you have another one.

<VirtualHost *:80>

That should _also_ not specify the port.

ServerName www.pilotalk.dyndns.org
ServerAlias pilotalk.dyndns.org

This is the part that is doing the real work - by checking the host name on
the request headers, and verifying that it's the name of the VirtualHost/

<VirtualHost *:80>

And the same again...

<Directory /var/www/>

HEY! You can't do that! If you want /var/www to be defined differently for
different VirtualHosts you have to define it _inside_ the <VirtualHost>
tag.

</VirtualHost>

And that's no use because you already closed that <VirtualHost> tag.

--
derek


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 2/29/2008
8:18 AM


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 2/29/2008
8:18 AM



--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users