So I have a main domaing pointing to my server (xx.xx.xx.xx).
I tried to create a subdomain with the following virtualhost file.
<VirtualHost myip:80> ServerName sub.mydomain </VirtualHost> <VirtualHost myip:80> ServerName mydomain.com </VirtualHost>
- I didn't put all the other codes here.
I can't even ping sub.mydomain.com. My domain.com works just fine.
Am I doing something wrong here?