title: Multiple Virtual Hosts on Different Ports in WAMP
body: <p>So I have this problem...</p>
  
  <p>I use WAMP and have set up perfectly working Virtual Hosts in the past, but now I have come to something I never foresaw.</p>
  
  <p>I am trying to do this:</p>
  
  <p>Access C:\wamp\www through <a href="http://localhost" rel="noreferrer">http://localhost</a></p>
  
  <p>Access D:\somethingelse through <a href="http://localhost:8080" rel="noreferrer">http://localhost:8080</a> OR <a href="http://something.dev" rel="noreferrer">http://something.dev</a></p>
  
  <p>I much prefer using the proper <a href="http://something.dev" rel="noreferrer">http://something.dev</a>, as the working site is <a href="http://something.co" rel="noreferrer">http://something.co</a>, and so I can keep them separate.</p>
  
  <p>I have followed guides and read forum posts, but all I have manages to do so far is this:</p>
  
  <p>Access C:\wamp\www through <a href="http://localhost" rel="noreferrer">http://localhost</a> OR <a href="http://something.dev" rel="noreferrer">http://something.dev</a></p>
  
  <p>Access D:\somethingelse through <a href="http://localhost:8080" rel="noreferrer">http://localhost:8080</a> OR <a href="http://something.dev:8080" rel="noreferrer">http://something.dev:8080</a></p>
  
  <p>Anybody got any idea how you would do this? Here's my VirtualHost Code:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerAdmin webmaster@localhost
  DocumentRoot "C:\wamp\www"
  ServerName localhost
  ServerAlias www.localhost.com
  ErrorLog "logs/localhost-error.log"
  CustomLog "logs/localhost-access.log" common
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:8080&gt;
  ServerAdmin webmaster@something
  DocumentRoot "D:/something/www"
  ServerName something.dev
  ServerAlias www.something.dev
  ErrorLog "logs/something-error.log"
  CustomLog "logs/something-access.log" common
  &lt;directory "D:/something/www"&gt;
      Options Indexes FollowSymLinks
      AllowOverride all
      Order Allow,Deny
      Allow from all
  &lt;/directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>And in httpd.conf I have this</p>
  
  <pre><code>Listen *:80
  Listen *:8080
  </code></pre>
  
  <p>And my hosts file is working and points both of these to 127.0.0.1</p>
  
  <p>(The reason I want to do this is that when I code on my machine I use the <a href="http://something.dev" rel="noreferrer">http://something.dev</a>, but I run Livereload Windows, and test my website simultaneously on an iPhone and iPad on the same local network, but without any access to iOS's equivalent of the hosts file. It also allows me to open up only a specific part of my server to the internet, through port forwarding on my router.)</p>