Hi all.
I'm trying to setup a ServerAlias but i need it to work only on a subdomain.
Let me explain:
I create the subdomain example.com and a subdomain cms.example.com; and all works correct.
After, usign the tools "Custom http configuration", i can setup a ServerAlias for the domain, let say, subd1.example1.com (yes, is another domain is not a typo) and all work correct: if i point my broswer to subd1.example1.com it show me the content of www.example.com.
Now, what i have to do is to add a ServerAlias subd2.example1.com (and another time, yes, is example1.com, is not a type
) that point to cms.example.com (the subdomain i created above): the only way i have to do is to manually edit the /usr/local/directadmin/data/user/*user*/http.conf and add the line at the beginning of the virtualhost of the subdomain. But once i made a little modification to the domains, directadmin overwrite all my modification to the http.conf.
I have already saw that i could create the subdomain as a new domain, but often i have an application that need the folder structure as directadmin create (and no, i don't change the web application: this will be eventually the last option i take into consideration
).
So, is there a way to do what i need? i have full access to the server and to the dns of all domains i want to work with.
Thanks in advance to you all, and sorry for my bad english: let me know is something is not clear.
Daniele
I'm trying to setup a ServerAlias but i need it to work only on a subdomain.
Let me explain:
I create the subdomain example.com and a subdomain cms.example.com; and all works correct.
After, usign the tools "Custom http configuration", i can setup a ServerAlias for the domain, let say, subd1.example1.com (yes, is another domain is not a typo) and all work correct: if i point my broswer to subd1.example1.com it show me the content of www.example.com.
Now, what i have to do is to add a ServerAlias subd2.example1.com (and another time, yes, is example1.com, is not a type

I have already saw that i could create the subdomain as a new domain, but often i have an application that need the folder structure as directadmin create (and no, i don't change the web application: this will be eventually the last option i take into consideration

So, is there a way to do what i need? i have full access to the server and to the dns of all domains i want to work with.
Thanks in advance to you all, and sorry for my bad english: let me know is something is not clear.
Daniele
Last edited: