• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Separate webroot for wildcard subdomain and www

JoeShmoe

New Pleskian
I'm looking for a way to use a different webroot for my www.domain.com and a different one for all the other subdomains.
I created domain.com, then created a wildcard subdomain for that domain, pointing to a different webroot.
The problem is that the wildcard subdomain hijacks the www subdomain as well.
domain.com is working correctly, but www.domain.com uses the wildcard subdomain's config.
I assume the problem is the order in which Apache reads the config files.

How can I solve this?
Using Plesk Obsidian 18.0.30 and Ubuntu 18
 
I guess there's currently no solution then.
So I would like request that subdomain configs are loaded before wildcard subdomain config.
 
A shoots, you are right. I could swear I had done the same before. I have now tested it on Obsidian and can see that there is an issue with that type of configuration.

I will go ahead and remove my posts here regarding the issue, so that others are not mislead by them.
 
Back
Top