Subdomain returns error when restarting Apache
Posted
by
xXx
on Server Fault
See other posts from Server Fault
or by xXx
Published on 2012-06-27T08:41:40Z
Indexed on
2012/06/27
9:17 UTC
Read the original article
Hit count: 183
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...
© Server Fault or respective owner