Hi,
I'm trying to add a subdomain to my site, and from what I've read here on the forums this can be done through the vhost template from an existing domain name.
I know there is also a subdomain tool in DirectAdmin but this is not what I need, because the documentroot of both domain and subdomain are the same (its a multisite script).
So I have added a server alias to the bottom of the httpd template textarea of my domain name like this:
ServerAlias demo.example.com
And in the grouped httpd.conf textarea below the custom textarea I can see there are now 2 serveraliases appearing:
ServerAlias demo. example.com
ServerName www. example.com
ServerAlias www. example.com sooperthemes.com
ServerAdmin webmaster@ example.com
DocumentRoot /home/projects/clearwind-group
ScriptAlias /cgi-bin/ /home/projects/clearwind-group/cgi-bin/
But the subdomain does not work. Does the server require additional setup? Or does it just ignore the first ServerAlias and ignore the second?
Who has experience with this?
I'm trying to add a subdomain to my site, and from what I've read here on the forums this can be done through the vhost template from an existing domain name.
I know there is also a subdomain tool in DirectAdmin but this is not what I need, because the documentroot of both domain and subdomain are the same (its a multisite script).
So I have added a server alias to the bottom of the httpd template textarea of my domain name like this:
ServerAlias demo.example.com
And in the grouped httpd.conf textarea below the custom textarea I can see there are now 2 serveraliases appearing:
ServerAlias demo. example.com
ServerName www. example.com
ServerAlias www. example.com sooperthemes.com
ServerAdmin webmaster@ example.com
DocumentRoot /home/projects/clearwind-group
ScriptAlias /cgi-bin/ /home/projects/clearwind-group/cgi-bin/
But the subdomain does not work. Does the server require additional setup? Or does it just ignore the first ServerAlias and ignore the second?
Who has experience with this?
