title: Running two virtual hosts on Apache server 2.2.* always goes to first one's docroot for any server name
body: <p>I have two virtual hosts in my httpd.conf file with separate docroots as shown below in same order.</p>
  
  <pre><code>&lt;VirtualHost *.80&gt;
  DocumentRoot E:\docroot1    
  ServerName www.development1.local
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *.80&gt;
  DocumentRoot E:\docroot2
  ServerName www.development2.local   
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Ideally when I hit www.development1.local it should show me the E:\docroot1 contents and when I hit www.development2.local it should show me the E:\docroot2 contents. Both these urls are set in my hosts file at 127.0.0.1</p>
  
  <p>My problem is that whatever url I type either www.development1.local or www.development2.local it always shows me E:\docroot1 contents. If I change the order of virtual hosts in httpd.conf file then it shows the E:\docroot2 contents. That means it always goes to first virtual host.</p>