The scenario:
- registered subdomains list
sub1.domain.com
sub2.domain.com
sub3.domain.com
Someone tries to hit sub4.domain.com which doesn't exists.
There's a wildcard record on the external nameserver so every unknown domain will hit main domain showing imscp login form.
There's a way to show an error page when an http/s request is trying to hit a subdomain which doesn't exists?