Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 04-09-2007, 07:05 AM   #1
Registered: Mar 2006
Posts: 122

Rep: Reputation: 15
apache2 error - namevirtualhost *:0 has no virtualhosts?

I'm trying to get my web server going and have tried to restarting apache but am getting the following error:

"namevirtualhost *:0 has no virtualhosts"

Any thoughts as to what causes this? I've set up my virtual host file in the /etc/apache2/sites-available and enabled directory's so I must be missing something obvious.

It's setup similar to this older question I found ( but I'm not using httpd.conf at all, should I be? I thought that was only for backward compatability.


Old 04-09-2007, 08:15 AM   #2
LQ Newbie
Registered: Apr 2006
Location: Szeged, Hungary
Distribution: Debian "squeeze"
Posts: 27

Rep: Reputation: 15

Please post your config file so somebody could help but maybe you forget the number "8" in your first line like: NameVirtualHost *:80 because apache listens to 80 port (http) and be sure that in /etc/apache2/ports.conf there is the :
"Listen 80" line (without "") to make apache listen to port 80.
Old 04-09-2007, 11:26 AM   #3
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
I was under the impression that if you didn't specify a port that it listened on "all" ports?

NameVirtualHost *

<VirtualHost *>

Now were talking about the actual Virtual Host file correct in the /sites-available folder? I simply copied 000-Default and renamed it to my host so I don't think it's wrong... but I'll post to be sure.

I'll verify the /etc/apache2/ports.conf and make sure port 80 is uncommented.



Just checked /etc/apache2/ports.conf and it's fine.

Last edited by tiger.woods; 04-09-2007 at 12:13 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache2 NameVirtualHost gabsik Linux - Networking 3 01-18-2007 03:26 PM
SuSe Apache2 error: cannot adjust 'apache2' service sir_shunt SUSE / openSUSE 14 04-18-2006 12:36 PM
openbsd 3.8 and virtualhosts error klemen *BSD 4 11-24-2005 12:18 PM
Apache Virtualhosts + PHP error critical Linux - Software 3 08-03-2005 01:21 AM
NameVirtualHost IP# has no VirtualHosts? DigiCrime Linux - Networking 2 10-11-2004 01:24 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration