Results 1 to 4 of 4

Thread: Apache error NameVirtualHost *:80 Has No VirtualHosts

  1. #1
    Join Date
    Dec 2008
    Posts
    32

    Apache error NameVirtualHost *:80 Has No VirtualHosts

    hello
    When i start Apache after created a virtual host file and enabled it and restart the HTTPD service on web host, the following warning message appears [warn] NameVirtualHost *:80 has no VirtualHosts there is very thing fine with Apache HTTP service so what is this NameVirtualHost *:80 has no VirtualHosts .how to make it work ?
    thank you .

  2. #2
    Join Date
    Feb 2008
    Posts
    2,635

    Re: Apache error NameVirtualHost *:80 Has No VirtualHosts

    this message is error warning message and it have no relation to function of web server so Apache HTTP service looks fine and hence the websites on the server can work. i am not sure but this is may be due to wrong use of NameVirtualHost.

  3. #3
    Join Date
    Jan 2006
    Posts
    4,221

    Re: Apache error NameVirtualHost *:80 Has No VirtualHosts

    Maybe you're making the modifications to the config file try at best to use IPs or * for the NameVirtualHost and VirtualHost . In some cases, with dedicated IP address only one virtual host is declared, the NameVirtualHost can be dropped. You can use a *, and as such it will be active for every IP on your system.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,339

    Re: Apache error NameVirtualHost *:80 Has No VirtualHosts

    To fix this problem, look out declaration in /etc/apache2/ports.conf:

    grep NameVirtualHost /etc/apache2/ports.conf
    #NameVirtualHost *:80
    also try this add a ServerName directive, as follows:

    <virtualhost *:80>
    ServerName hostname
    ServerAdmin webmaster@localhost

Similar Threads

  1. Replies: 4
    Last Post: 05-05-2012, 05:59 PM
  2. CentOS 5.2 and Apache 2.2.3: Getting error message 403
    By Angee in forum Operating Systems
    Replies: 5
    Last Post: 05-05-2011, 10:49 AM
  3. Solve apache / tomcat 404 error
    By SoftWore in forum Tips & Tweaks
    Replies: 1
    Last Post: 22-07-2010, 10:32 AM
  4. Apache Tomcat -- JSP HTTP 404 Error!!
    By ScarFace 01 in forum Software Development
    Replies: 4
    Last Post: 22-07-2010, 06:01 AM
  5. VirtualBox Apache Install Error
    By Nilakshi in forum Operating Systems
    Replies: 5
    Last Post: 15-07-2010, 03:03 AM

Tags for this Thread

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
  •  
Page generated in 1,751,709,866.27405 seconds with 16 queries