invalid subdomains return 526 instead of nothing
i own the domain https://reidlab.online. i want to make it so if you have an invalid subdomain (like this: https://notrealsubdomain.reidlab.online) it should return nothing instead of a "526" error. like how almost every other domain does it (like this: https://notrealsubdomain.google.com/)
6 Replies
an official cloudflare source says to use Full instead of Full (Strict) but i want to be as secure as possible
You probably created a wildcard DNS record?
yes i did
Thats why theyre not returning nothing, because the wildcard makes every single subdomain resolve to something
ah i see
Then the 526 is because whatever certificate the origin chose to serve for the host is not valid for that subdomain - probably if it doesnt recognise the domain it defaulted to some self-signed cert, but thats just a guess