J
Johand
Guest
I've got a small (read: big) problem with a wildcard; here's the setup:
There's a client with 2 domains configured: www.example.com and example.com (without www)
These domains have their own hosting, since they have different sites.
example.com is configured with a wildcard subdomain;
"*.example.com CNAME example.com" in DNS
"ServerAlias *.example.com" in vhost.conf
www.example.com is standard, except that it only accepts www (or subsubdomains like test.www.example.com)
The problem is, after I configured the DNS and vhost.conf, I can't access the WWW site, but it goes to the wildcard site.
Is there a simple solution to fix this like excluding www from the wildcard or doing a query on the psa database, or do I have to rethink/rebuild the configuration?
I did find some possible reasons due the order of the domains at the psa database (wildcard is before www) which means that apache first sees the wildcard and stops instead of checking for the www part.
Some help will be very usefull.
There's a client with 2 domains configured: www.example.com and example.com (without www)
These domains have their own hosting, since they have different sites.
example.com is configured with a wildcard subdomain;
"*.example.com CNAME example.com" in DNS
"ServerAlias *.example.com" in vhost.conf
www.example.com is standard, except that it only accepts www (or subsubdomains like test.www.example.com)
The problem is, after I configured the DNS and vhost.conf, I can't access the WWW site, but it goes to the wildcard site.
Is there a simple solution to fix this like excluding www from the wildcard or doing a query on the psa database, or do I have to rethink/rebuild the configuration?
I did find some possible reasons due the order of the domains at the psa database (wildcard is before www) which means that apache first sees the wildcard and stops instead of checking for the www part.
Some help will be very usefull.