title: How do I setup multiple ip addresses to point to different virtual hosts on wamp server?
body: <p>I use WAMP server on my Windows machine. I want to achieve the following setup:</p>
  
  <p>1) I want to create multiple folders in my wamp's 'www' directory each representing a website.
  2) Add multiple entries to my host file with different ip addresses, each pointing to one of the folders in the wamp's 'www' directory.</p>
  
  <p>So lets say, I create 3 folders in my wamp 'www' directory named - "site1", "site2", "site3" and add the following to my host file:</p>
  
  <p>127.0.0.1 site1.local
  127.0.0.2 site2.local
  127.0.0.3 site3.local</p>
  
  <p>And then I goto the url "site1.local", I can get to the folder "site1" and the same for other two as well.</p>
  
  <p>My knowledge:
  I noticed that even if the host file is empty, going to any address in the format - "127.xx.xx.xx" where xx can be upto 99 and the last one not being 0 - will result in loading the default wamp page.</p>
  
  <p>I know about setting virtual host servers in wamp through apache and addressing them to different directories.</p>
  
  <p>My difficulty:
  I tried many different ways but any address would only straight away point to the default directory that I set in apache as the main host. I think the host file is meant to be used to point all the addresses to the same point no matter what address we add to it. (But I'm not sure...)</p>
  
  <p>Please help me achieve the aforesaid setup.</p>