Apache2 Startup warning: NameVirtualHost *:80 has no VirtualHosts

Posted by Kit Roed on Server Fault See other posts from Server Fault or by Kit Roed
Published on 2009-04-30T18:16:24Z Indexed on 2010/03/31 20:03 UTC
Read the original article Hit count: 844

Filed under:
|

When my Ubuntu Apache server (apache2) starts up I get a warning message that reads:

[warn] NameVirtualHost *:80 has no VirtualHosts

however, the web server is working fine... could anyone explain what I might have wrong in my site's configuration to make it give me this warning?

the config file in question (located in /etc/apache2/sites-available) reads like this (details removed for brevity)

<VirtualHost *>
    <Location /mysite>
        # config details here...
    </Location>

    # use the following for authorization
    <LocationMatch "/mysite/login">
        AuthType Basic
        AuthName "My Site"
        AuthUserFile /etc/sitepasswords/passwd
        Require valid-user
    </LocationMatch>
</VirtualHost>

Could the fact that I'm using <Location> be a part of the problem?

© Server Fault or respective owner

Related posts about linux

Related posts about apache