How to apache identify for which virtual host the request has come?
I'm having some basic doubt! Consider 5 virtual domains has configured under a same server. I mean 5 different domains under same IP. Eg. mydomain1.com and mydomain2.com have IP 220.127.116.11. So when web browser request for mydomain1.com name server return IP address 18.104.22.168. Then browser contact IP 22.214.171.124 on port 80. Here comes my question how does apache know that the browser is looking for mydomain1.com not mydomain2.com. How apache differentiate the request for it's virtual hosts? By the way, what is a virtualhost ?