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