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