title: Laravel virtual host on Xampp does not work properly
body: <p>I want to load my Laravel 5.8 project with Virtual Host on XAMPP. So here is what I did:</p>
  <p>I opened up <code>C:\Windows\System32\drivers\etc\hosts</code> and put this:</p>
  <pre><code>#   127.0.0.1       localhost
  #   ::1             localhost
      127.0.0.1       local.nanoclub.ir
  </code></pre>
  <p>Then at <code>C:\xampp\apache\conf\extra\httpd-vhosts.conf</code>, I added this:</p>
  <pre><code>&lt;VirtualHost local.nanoclub.ir:80&gt;
      DocumentRoot &quot;C:/xampp/htdocs/badges/public&quot;
      ServerName local.nanoclub.ir
      ServerAlias *.local.nanoclub.ir
      SetEnv APPLICATION_ENV &quot;development&quot;
      &lt;Directory &quot;C:/xampp/htdocs/badges/public&quot;&gt;
          DirectoryIndex index.php
          AllowOverride All
          Order allow,deny
          Allow from all
      &lt;/Directory&gt;    
  &lt;/VirtualHost&gt;
  </code></pre>
  <p>And also added this to my project, public <code>.htaccess</code>:</p>
  <pre><code>RewriteEngine On
  RewriteCond %{HTTP_HOST} !^www\. [NC]
  RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
  </code></pre>
  <p>But now when I want to run <code>local.nanoclub.ir</code> on browser, I get this:</p>
  <p><a href="https://i.stack.imgur.com/Opu7f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Opu7f.png" alt="enter image description here" /></a></p>
  <p>So what's going wrong here? I used to access this <code>local.nanoclub.ir</code> correctly but now it loads this screen.</p>
  <p>How to solve this issue?</p>