• 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

Subdomain Wildcard oddness

jas8522

Basic Pleskian
I've got a weird situation, that I'm trying to explain.

the default domain has a simple html file that redirects to my domain (called mydomain for simplicity).

so going to http://myip takes you to http://mydomain for example.

Let's assume that all domains mentioned here have subdomains. Because of this I cannot add a serveralias *.anydomain.com to any of the domains or else the subdomains will not be available. That's fine.

If you go to anexistingsubdomain.mydomain.com it takes you to the subdomain as it should. If you go to nonexistingsubdomain.mydomain.com it comes up with an error that it can't find the page. Great that works for me. (btw, the error in firefox is the "domain" could not be found, please check the name and try again error. and in IE it takes me to MSN search saying "we can't find the page". That might help)

However if you go to anexistingsubdomain.anyotherdomain.com it takes you to the subdomain as it should (so far so good). BUT if you go to nonexistingsubdomain.anyotherdomain.com it takes you to the default page... why not an error?

Neither of these have a wildcard *.domain.com CNAME setup in their DNS settings, and neither are using serveralias for the vhost as then I couldn't get to the subdomains!

any idea why this is happening? Ideally I'd like to just have an error come up for all of them.. that's better than getting redirected to my default site!

Thanks to anyone who can help,

Jordan
 
Back
Top