I have the following Apache config:
ServerName mydomain.com <VirtualHost 188.8.131.52:80> # contains my IP NameVirtualHost 184.108.40.206 # 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 (220.127.116.11 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)?