Subdomain returns error when restarting Apache
- by xXx
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 *:80
<VirtualHost *:80>
ServerName tb.mysite.org
DocumentRoot /home/mysite/wwww/tb/
<Directory "/home/mysite/wwww/tb/">
AllowOverride All
Allow from all
</Directory>
</VirtualHost>
Then i restart Apache but it returns
sudo /etc/init.d/apache2 restart
* Restarting web server apache2
Warning: DocumentRoot [/home/mysite/wwww/tb/] does not exist
[Wed Jun 27 10:32:58 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
... waiting Warning: DocumentRoot [/home/mysite/wwww/tb/] does not exist
[Wed Jun 27 10:32:59 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...