Forum

Creating a subdomain

Evan
2 January 2017, 02:27
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:
VirtualHost {
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?

Thanks,

Evan
Evan
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

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