Forum Moderators: phranque
We are searching for days how to do that.
We now have 8 subdomains for each domain name (9 different)... We will asap, for search engine optimization reasons, have more than 48 subdomains for each domain name.
We use a virtual server for our "live" site and one for our "test" site.
Structure is:
[*.domain.*...] = live sites
[test*.domain.*...] = test sites
In order to avoid writing more than 400 different possibilities, we would like to use wildcards in the serveralias directive.
But, it seems that *.domain.com takes priority over test*.domain.com... and the test site is never accessed.
Is there a easy solution for us?
Thanks a lot, Seb
Thanks for your reply.
Unfortunately I need to know a little more as it does not seem to work for me.
in my config file of "live" virtual server, I added:
ServerAlias *.domain.com
in my config file of "test" virtual server, I added:
ServerAlias *.test.domain.com
But when I try [test.domain.com...] ... it brings me to the live site.
What's wrong? :-(
Is there a way to say the system to verify first if the domain matches *.test.domain.com before verifying if it matches *.domain.com?
Thanks, Sebastien