title: WAMP Virtual Host not working
body: <p>I am using a wamp version 2.5
  My Apache is 2.4.9
  PHP: 5.5.12
  MySQL: 5.6.17</p>
  
  <p>I have these configurations:</p>
  
  <p>On my <code>httpd.conf</code></p>
  
  <pre><code># Virtual hosts
  Include conf/extra/httpd-vhosts.conf
  </code></pre>
  
  <p>On my <code>G:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhost.conf</code></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.
  #
  
  
  #
  # 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;
      ServerAdmin webmaster@dummy-host.example.com
      DocumentRoot "g:/Apache24/docs/dummy-host.example.com"
      ServerName dummy-host.example.com
      ServerAlias www.dummy-host.example.com
      ErrorLog "logs/dummy-host.example.com-error.log"
      CustomLog "logs/dummy-host.example.com-access.log" common
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@dummy-host2.example.com
      DocumentRoot "g:/Apache24/docs/dummy-host2.example.com"
      ServerName dummy-host2.example.com
      ErrorLog "logs/dummy-host2.example.com-error.log"
      CustomLog "logs/dummy-host2.example.com-access.log" common
  &lt;/VirtualHost&gt;
  
  
  &lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@dummy-host.example.com
      DocumentRoot "g:/wamp/www"
      ServerName localhost
      ErrorLog "logs/localhost-error.log"
      CustomLog "logs/localhost-access.log" common
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      DocumentRoot "g:\wamp\www\mysite\public"
      ServerName mysite.dev
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>On my <code>c:\Windows\System32\Drivers\etc\hosts</code></p>
  
  <pre><code># localhost name resolution is handled within DNS itself.
  127.0.0.1   localhost
  127.0.0.1   mysite.dev
  #   ::1     localhost
  </code></pre>
  
  <p>I try to access my project using this URL: <code>http://www.mysite.dev/</code> <strong>BUT</strong> I am getting a <code>Server not found error</code> I tried accessing it using <code>www.mysite.dev</code> , <code>http://mysite.dev</code> but still having a bad luck!</p>
  
  <p>My virtual host was working before but i'm not sure why it wasn't working now. Some weird stuff going on.</p>
  
  <p>I am not sure what's happening. Any ideas will be greatly appreciated!</p>
  
  <p>Thanks! </p>