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