title: XAMPP setup to use name instead of IP address
body: <p>I have an internal network for our company and in one of the server I have XAMPP/Apache setup and have my own website.</p>
  
  <p>I access that page from a browser anywhere within a network by entering the following address:</p>
  
  <p><code>http://10.10.239.306/MyPage/testpage.php</code></p>
  
  <p>I am trying to change so that instead of the IP (which is hard to remember) the user can enter, say for example:</p>
  
  <p><code>http://hweb/MyPage/testpage.php</code></p>
  
  <p>I followed the online instruction and did the following update on the server hosting the pages:</p>
  
  <p>in the <code>C:\Windows\system32\driver\etc\host</code> file I added:</p>
  
  <p><code>127.0.0.1  hweb</code></p>
  
  <p>in the <code>C:\xampp\apache\conf\extra\httpd-vhosts.conf</code> file I added:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName hweb
      ServerAlias myname
      DocumentRoot c:/xampp/htdocs/MyPage
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>When I enter <code>http://hweb/MyPage/testpage.php</code> in my browser, I get a <code>Internet Name Resolution Error (dns_server_failure)</code> error</p>
  
  <p>I did restart the Apache server twice.</p>
  
  <p>Does anyone know what I am doing wrong and how to fix it?</p>