I have the following Apache config:
ServerName mydomain.com <VirtualHost 126.96.36.199:80> # contains my IP NameVirtualHost 188.8.131.52 # contains my IP ServerName mydomain.com </VirtualHost>
My assumption is that only requests to mydomain.com should go to that VirtualHost. Unfortunately even requests to the IP address (184.108.40.206 in the code above) are handled by the VHOST.
1) What is the right procedure to distinguish between IP and Host?
2) What is the right approach to point requests to the IP i.e. to a 403 (i.e. with a separate VHOST)?