I have only one subdomain configured, and it works properly. But if I request any other random subdomain whatever.mydomain.com, it returns an invalid certificate warning in the browser:

This website may be impersonating "foobar.mydomain.com" to steal your personal or financial information. You should go back to the previous page.

How do I do disable all other subdomains so that instead they return server not found errors:

Safari can't open the page "https://foobar.mydomain.com" because Safari can't find the server "foobar.twitter.com".


Delete the wildcard DNS entry from your DNS records. Create records only for those subdomains which you intend to be accessible.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.