Creating a subdomain

2 January 2017, 02:27
I already have a domain,, that works well. As soon as I create a subdomain,, and I create a VirtualHost for it, then every domain becomes "broken" and not accessible.

I created a new VirtualHost as follows:
VirtualHost {
Hostname =
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?


2 January 2017, 04:04
It was the ttl that was causing the error. I waited and the subdomain now works.
There was nothing wrong with the VirtualHost

Hugo Leisink
2 January 2017, 09:35
Good to hear it works now.
This topic has been closed.