warnig with restart httpd

Discussion in 'Server Operation' started by leen, Apr 10, 2006.

  1. leen

    leen New Member

    I get this warnibg while restarting httpd.

    Starting httpd: [Mon Apr 10 07:38:05 2006] [warn] NameVirtualHost 0.0.0.0:80 has no VirtualHosts

    What does this mean?
     
  2. 22hosting

    22hosting New Member

    Basically it looks like your httpd is trying to bind to 0.0.0.0 which means it's binding to ANY live ip address on your system (most probably your main one). And you have no virtual hosts set up in the httpd.conf file. Which is why it's telling you it has noVirtualHosts.

    You need to add one. locate httpd.conf and edit it using your favourite editor. There is a virtual hosts section (although personally I recommend segregating vhosts into a seperate vhost.conf file . After that if you take a browse to the apache website you can find documentation on how to add a virtual host in correctly.
    ________
    Banti4u live
     
    Last edited: Aug 22, 2011
  3. leen

    leen New Member

    I have found the file vhost.conf.master

    It has no values like ipadres and so.

    Should this be the file to configure, or should the httpd.conf file be pointing to this one?
     
  4. 22hosting

    22hosting New Member

    The ip bind address is specified (along with the port address) are in the httpd.conf file.
    You can put virtual host information into the httpd.conf file but I recommend building your own vhost.conf file and putting "#include vhost.conf" into the bottom of the httpd.conf .
    To read up more about how to set up virtualhosts see : http://httpd.apache.org/docs/2.2/vhosts/

    Your vhost.conf should look something like :
    ________
    Avandia Lawsuit Info
     
    Last edited: Aug 22, 2011
  5. leen

    leen New Member

    Oh yes, that is the same as one should put in the httpd.conf.
    I have used that before.

    But can you tell me what is the benefit of using a serate file like vhost.conf.
     
  6. falko

    falko Super Moderator Howtoforge Staff

    If you use separate files, the configuration is more clearly laid out and easier to maintain. If you use one big file you have to wade through it every time you want to make changes.
     
  7. leen

    leen New Member

    Yes, offcourse

    I didn't realise that I won't have a lot of virtual hosts now but in the future I might have.
    Therefore I might just as well get usud to it right away.

    Thaks
     

Share This Page