title: Adding virtual hosts for apache
body: <p>I have IIS installed on my windows 7 which uses default port 80 and can be accessed at <code>http://localhost</code>. Now I have installed XAMPP as well and set the port 8081, so I can access it at <code>http://localhost:8081</code>.</p>
  
  <p>Now, I want to add virtual host only for the xampp so that I can access it via <strong><code>http://test/</code></strong> instead of <code>http://localhost:8081</code>. I dont want to make any changes in IIS address and want to keep its address same. For that purpose, I have added virtual host in my xampp/apache/conf/extra/httpd-conf file ie.,</p>
  
  <pre><code>NameVirtualHost *:8081
  &lt;VirtualHost *:8081&gt;
      ServerAdmin admin@localhost.com
      DocumentRoot "C:/xampp/htdocs"
      ServerName test
      ServerAlias test
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I have restarted the apache but still can not access the address <strong><code>http://test</code></strong>. Am I missing something or doing something wrong?</p>