my default virtual host which loads mainsite.com
NameVirtualHost *
<VirtualHost *>
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
</VirtualHost>
another virtual host i added so when i go to myothersite.com it will load
NameVirtualHost *
<VirtualHost *>
ServerName myothersite.com
DocumentRoot /var/www/myothersite.com
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
</VirtualHost>
I have already added A record to my server ip for myothersite.com.
I restarted apache server but myothersite.com will not load. I get server not found.
when restarting i get [warn] NameVirtualHost *:0 has no VirtualHosts