I have a webserver with Plesk which is set up to host my main domain, e.g. 'example.com' (and also www.example.com for that matter).
Now I want it to also support any subdomain, so whenever somebody visits whatever.example.com
or random.example.com
it should end up in the same main website.
In other words I want the server to not just serve example.com but also any *.example.com subdomains as the same website.
I have tried adding a wildcard DNS entry for *.example.com which points to example.com (CNAME record) or its IP address (A record) but that didn't seem to be enough.
How or what do I have to configure in order to make this work?