title: configuring virtual host and localhost redirecting to the xampp folder
body: <p>I have problem with creating virtual host. I am using Windows 7 x64 Professional. In file <code>C:\Windows\System32\drivers\etc\hosts</code> I have only this lines:</p>
  
  <pre><code>127.0.0.1   myhost
  127.0.0.1   www.myhost
  </code></pre>
  
  <p>And in file <code>C:\xampp\apache\conf\extra\httpd-vhosts.conf</code> I have this:</p>
  
  <pre><code>NameVirtualHost *:80
  &lt;VirtualHost *:80&gt; 
      DocumentRoot "C:/xampp/htdocs/"
      ServerName localhost
      ServerAlias www.localhost
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt; 
      DocumentRoot "C:/Users/Me/Dropbox/Project/public"
      ServerName myhost
      ServerAlias www.myhost
      &lt;Directory "C:/Users/Me/Dropbox/Project/public"&gt;
          Options Indexes FollowSymLinks Includes ExecCGI
          AllowOverride All
          Order allow,deny
          Allow from all
     &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>And of course I have restared my Apache server after adding this lines in those files.
  Unfortunatly typing <code>myhost</code> or <code>www.myhost</code> in my browser redirect me to the <code>myhost/xampp</code>.</p>
  
  <p>I have already search and I have found on google and also on stackoverflow description how to configure virtual hosts using xampp but how can I recognize I have done everything alright. I know that my problem isn't new but I didn't found working solution for me.</p>
  
  <p>I have also recognized that typing <code>localhost</code> in my browser redirect me alsto <code>localhost/xampp</code>. I don't know whether these problems are linked in my case.</p>