Greetings.
1 IP, on it N hosts.
Described as virtual hosts, entries in httpd.conf like this:
NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain.tld ServerAlias domain.tld DocumentRoot /www/domain </VirtualHost> <VirtualHost *:80> ServerName www.otherdomain.tld ServerAlias otherdomain.tld DocumentRoot /www/otherdomain </VirtualHost> Faced with the fact that when you try to open a subdomain undefined in the config, for example, ns2.domain.tld, the contents of domain.tld open. But in servername, serveralias this subdomain does not appear. How to prevent open it?