I already have a domain, domain.com, that works well. As soon as I create a subdomain, sub-domain.domain.com, and I create a VirtualHost for it, then every domain becomes "broken" and not accessible.
I created a new VirtualHost as follows:
Hostname = sub-domain.domain.com
WebsiteRoot = <path1>
AccessLogfile = <path 2>
ErrorLogfile = <path 3>
UseFastCGI = PHP5
StartFile = index.php
CustomHeader = X-Frame-Options: sameorigin
CustomHeader = Vary: Accept-Encoding
EnforceFirstHostname = yes
PreventXSS = yes
PreventCSRF = yes
PreventSQLi = yes
Is this the proper way of creating a subdomain?