title: XAMPP Virtual Hosts not working
body: <p><strong><em>Before marking this as answered, please read the entire thing because yes there is a good amount of these questions but NONE of the answers on them have worked at all.</em></strong></p>
  
  <p>For the last 6 months I've looked at around 50 different form posts here and around the web to try and get my XAMPP virtual hosts working.</p>
  
  <p>Hosts File</p>
  
  <pre><code>127.0.0.1       localhost
  127.0.0.1       vws.localhost
  127.0.0.1       instancegaming.net
  127.0.0.1       vws.instancegaming.net
  </code></pre>
  
  <p>http-vhosts File (Updated 7/26)</p>
  
  <pre><code> # Virtual Hosts
   #
   # Required modules: mod_log_config
  
   # If you want to maintain multiple domains/hostnames on your
   # machine you can setup VirtualHost containers for them. Most      configurations
   # use only name-based virtual hosts so the server doesn't need to worry    about
   # IP addresses. This is indicated by the asterisks in the directives below.
   #
   # Please see the documentation at
   # &lt;URL:http://httpd.apache.org/docs/2.4/vhosts/&gt;
   # for further details before you try to setup virtual hosts.
   #
   # You may use the command line option '-S' to verify your virtual host
   # configuration.
  
   #
   # Use name-based virtual hosting.
   #
   # NameVirtualHost *:80
   #
   # VirtualHost example:
   # Almost any Apache directive may go into a VirtualHost container.
   # The first VirtualHost section is used for all requests that do not
   # match a ##ServerName or ##ServerAlias in any &lt;VirtualHost&gt; block.
   #
   &lt;VirtualHost *:80&gt;
      ServerName localhost
      DocumentRoot "C:\xampp\htdocs"
      &lt;Directory "C:\xampp\htdocs"&gt;
        DirectoryIndex index.php
      &lt;/Directory&gt;
   &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I'm at a loss of what to do, I've tried putting all fields to localhost then to instancegaming.net but nothing seems to work. I've read the Apache log and there's only SSL errors floating around.</p>
  
  <p>When I try going to [ http:// ] vws.localhost,  vws.192.168.0.47, vws.instancegaming.net all of which give the same error in chrome:</p>
  
  <blockquote>
    <p>ERR_NAME_NOT_RESOLVED</p>
  </blockquote>
  
  <p>Then I tried emptying chromes host cache, but that didn't help either.
  Sidenote: I reinstalled XAMPP 4 times trying to make this work. </p>