SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2005
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    NameVirtualHost has no VirtualHosts

    Hi,

    I am having a major problem with my server. Apache has stopped working and I am getting the following when trying to restart it.



    [Fri Mar 28 10:56:49 2008] [warn] VirtualHost 88.208.208.204:80 overlaps with VirtualHost 88.208.208.204:80, the first has precedence, perhaps you need a NameVirtualHost directive
    [Fri Mar 28 10:56:49 2008] [warn] VirtualHost 88.208.208.204:443 overlaps with VirtualHost 88.208.208.204:443, the first has precedence, perhaps you need a NameVirtualHost directive
    [Fri Mar 28 10:56:49 2008] [warn] NameVirtualHost 88.208.209.203:80 has no VirtualHosts
    [Fri Mar 28 10:56:49 2008] [warn] NameVirtualHost 88.208.209.203:80 has no VirtualHosts
    [Fri Mar 28 10:56:49 2008] [warn] NameVirtualHost 88.208.209.202:80 has no VirtualHosts
    [Fri Mar 28 10:56:49 2008] [warn] NameVirtualHost 88.208.209.202:80 has no VirtualHosts
    [Fri Mar 28 10:56:49 2008] [warn] NameVirtualHost 88.208.209.202:443 has no VirtualHosts
    [Fri Mar 28 10:56:49 2008] [warn] NameVirtualHost 88.208.208.137:80 has no VirtualHosts
    [Fri Mar 28 10:56:49 2008] [warn] NameVirtualHost 88.208.208.137:443 has no VirtualHosts


    I have looked in the httpd.conf file and vhost.conf file, but am not sure what I need to edit.

    Has anybody got any ideas? Would it help if I attached the 2 files?

    Thanks,
    Mark

  2. #2
    SitePoint Guru Ruben K.'s Avatar
    Join Date
    Jun 2005
    Location
    Alkmaar, The Netherlands
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What version of apache?

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2005
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Server version: Apache/2.2.0

  4. #4
    SitePoint Guru Ruben K.'s Avatar
    Join Date
    Jun 2005
    Location
    Alkmaar, The Netherlands
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What platform? (windows/*nix?)

  5. #5
    SitePoint Enthusiast
    Join Date
    Aug 2005
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, Linux

  6. #6
    SitePoint Guru Ruben K.'s Avatar
    Join Date
    Jun 2005
    Location
    Alkmaar, The Netherlands
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check in /etc/apache2/sites-enabled/ for virtualhost files
    Also, I believe httpd.conf is not the global apache configuration file anymore (apache2.conf now?) so you might want to check that

  7. #7
    SitePoint Enthusiast
    Join Date
    Aug 2005
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Ruben,

    I haven't got a directory called /etc/apache2/sites-enabled/ and I also can't find an apache2.conf file. I am am assuming that this would be in the normal place? etc/httpd/conf? There is also no /etc/apache2 folder.

    The only files related that I can find are the httpd.conf and vhosts.conf.

    Cheers

  8. #8
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    maw,

    I **THINK** that httpd.conf should have the base hostname but the virtual hosts should all be in the vhosts.conf file.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •