Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I try to install a subdomain on my dedicated server. I made a new DNS rules to point my sub domain to the IP of my serv.

After reading this Subdomain on apache i tried to add new rules on Apache :

NameVirtualHost IP:80
<VirtualHost *:80>
DocumentRoot /home/www/mysite/tb

Then i restart Apache but it returns

 sudo /etc/init.d/apache2 restart
 * Restarting web server apache2 
 [Wed Jun 27 12:33:41 2012] [warn] NameVirtualHost *:80 has no VirtualHosts                                                                                                                                                    
 ... waiting [Wed Jun 27 12:33:42 2012] [warn] NameVirtualHost *:80 has no VirtualHosts

the tb/ folder is existing, don't why Apache can't find it... And it says that NameVirtualHost:80 has no VirtualHosts...

EDIT : Here is my complete /etc/apache2/sites-available/default Hop it helps :)

share|improve this question

Show the output of this: ls -dl /home/mysite/wwww/tb

And it says that NameVirtualHost:80 has no VirtualHosts...

Try to change to NameVirtualHost <IP>:80

share|improve this answer
i try to put NameVirtualHost 88.191.XXX.XXX:80 instead of NameVirtualHost *:80 but it still returns NameVirtualHost 88.191.XXX.XXX:80 has no VirtualHosts – x_vi_r Jun 27 '12 at 10:29
The DocumentRoot [/home/mysite/wwww/tb/] does not exist is fixed btw – x_vi_r Jun 27 '12 at 10:31

Does the user your Apache server runs as have permission to view /home/mysite/wwww/tb/? If the folder exists, but the user the apache server runs as does not haver permission to read it, then as far as apache is concerned, it does not exist.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.