title: Set up host file using port
body: <p>I want to setup my host file to </p>
  
  <p><strong>127.0.0.2:5050 domain2.com</strong>  => this is a local domain</p>
  
  <p>when a type in my browser domain2.com, this return me : HTTP Error 404. The requested resource is not found.</p>
  
  <p>i use this in apache</p>
  
  <pre><code>&lt;VirtualHost 127.0.0.9:5050&gt;
  
      ServerAdmin info@domain2.com
      DocumentRoot "C:/Users/My_Dir/LOOP/WebEnginer-2011/domain2_Dir/"
      ServerName domain2.com
      DirectoryIndex index.php index.html index.htm
      ServerAlias www.domain2.com
      ErrorLog "c:/wamp/xxxx/xxxx.log"
      CustomLog "c:/wamp/xxxx/xxxx.log" common
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost 127.0.0.9:5050&gt;
  
      ServerAdmin info@domain2.com
      DocumentRoot "C:/Users/My_Dir/LOOP/WebEnginer-2011/domain2_Dir/admin_Dir/"
      ServerName admin.domain2.com
      DirectoryIndex index.php index.html index.htm
      ServerAlias www.admin.domain2.com
      ErrorLog "c:/wamp/xxxx/xxxx.log"
      CustomLog "c:/wamp/xxxx/xxxx.log" common
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>but when i type <strong>127.0.0.2:5050</strong> i can see a web page. I want to use subdomain like admin.domain2.com</p>
  
  <p>i can't use port 80 because IIS use that port.</p>
  
  <p>How can i set up my host file to listen <strong>domain2.com</strong>?</p>