Re: [OT] Null

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

 



On 14-Apr-09, at 8:34 AM, André Warnier wrote:

For the other part of the discussion, I suggest prefixing the subject with [OT] (marking as "off topic".

About the issue at hand :

Just for the sake of it, to the previous configuration on my server, I added an extra (thus, in my case, duplicated) line in httpd.conf, just above where it starts including other files :

NameVirtualHost *:80

Then I ran : /usr/sbin/apache2ctl -t

and I got a message :
evm2:~# /usr/sbin/apache2ctl -t
[Tue Apr 14 13:12:35 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
Syntax OK

OK the only 2 mods to this file are as such now:

NameVirtualHost *:80 (placed before included files)

Include /private/etc/apache2/users/rich.conf

upon the test I got back:

[Tue Apr 14 08:44:10 2009] [warn] NameVirtualHost 127.0.0.1:80 has no VirtualHosts [Tue Apr 14 08:44:10 2009] [warn] NameVirtualHost 127.0.0.1:80 has no VirtualHosts
Syntax OK

then, I removed that line again, and I re-ran the same command :

evm2:~# /usr/sbin/apache2ctl -t
Syntax OK
evm2:~#

[Tue Apr 14 08:45:40 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
Syntax OK

Does that tell you something ?
Why don't you try the same thing (adding another NameVirtualHost somewhere), and see if you now get 2 warnings ?

I got 2, then 1, the same as you.

If you are absolutely sure that you do not have more than one NameVirtualHost directive in your whole collection of configuration files, then also make sure that the same configuration file is not being included more than once in your httpd.conf (which would have the same effect).

The point is, I know of no other way to get the warning above, than having a duplicated NameVirtualHost directive somewhere, without following it by corresponding <VirtualHost> sections.

Granted also, the on-line documentation does not seem to explicitly say that you should not do that. But neither does it say explicitly (I believe) that you should not use AAA for a port number, or try to use Apache to wash your laundry.

Anyway, it was stated that there is something I'm missing for some unknown reason I'm not paying for, or something of that nature. "NameVirtualHost 8:80 has no VirtualHosts", to me, conflicts with "*: 80 is a NameVirtualHost". My vhosts are registering twice in apachectl -S. I will see if I can hack it for a workaround. Thanks for the attention. Very little of this makes any sense.

Rich in Toronto
...now go get on your bike


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-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