title: Apache VirtualHost: How to ServerName a port different from 80
body: <p>I use Xampp and I want <code>test.localhost</code> to go to <code>127.0.0.1:81</code>.</p>
  
  <p>In httpd.conf I wrote:</p>
  
  <pre><code>Listen 127.0.0.1:81
  NameVirtualHost 127.0.0.1:81
  &lt;VirtualHost 127.0.0.1:81&gt;
   ServerName test.localhost
   DocumentRoot "d:\_projects\projectx"
   DirectoryIndex index.php
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>and to <code>windows\system32\drivers\etc\hosts</code> I added:</p>
  
  <pre><code>127.0.0.1       test.localhost
  </code></pre>
  
  <p>But <code>http://test.localhost</code> now brings me to <code>127.0.0.1:80</code>.</p>
  
  <p>How do I make it go to <code>127.0.0.1:81</code>?</p>