And of course you should configure your DNS to redirect user1.mydomain.tld and user2.mydomain.tld to your server, and to configure your VirtualHost to do it too.
Ali Nebi
Thursday 16 June 2011 6:46:26 am
Hi, Damien.
Thanks for your reply.
Yes, this case is clear when there are few subdomains, but my point is to be more flexible. So it does not matter how many subdomain i will have, all they to point to specific siteaccess.
I'm reading now this
Regexp matching
HostMatchType=regexp
HostMatchRegexp=^(.+)\.example\.com
HostMatchRegexpItem=1
This regexp setup uses the regular expression ^(.+)\.example\.com to match anything in front of .example.com. The first match is set up to hold the siteaccess. E.g the hostname test.example.com yields the siteaccess test.
All this is ok except this line:
HostMatchRegexpItem=1
Here i should able to set which siteaccess will be accessed when there is match with the regex in the rule above. But it seems that it is not possible without changing the php code.