title: How to configure laravel project for production server and remove public in url
body: <h2>LARAVEL 5.0 | APACHE 2.4.7 | PHP 5.5.8</h2>
  
  <p>I know this is a pretty popular question. A lot of people saying to move public contents to root directory (which i find awkward because of security issues), rewriting the .htaccess, creating virtual host.</p>
  
  <p>I tried creating virtual host because i think this is more acceptable solution.</p>
  
  <p>but i'm encountering some problems with my configurations:</p>
  
  <p>I'm running <a href="http://www.easyphp.org/" rel="nofollow noreferrer">easyphp</a> for the meantime, id like to test if i can get rid of the public route in url before setting this up live.</p>
  
  <p><em>httpd.conf</em></p>
  
  <pre><code>NameVirtualhost *:80
  &lt;VirtualHost *:80&gt;
      DocumentRoot "${path}/data/localweb/quantum.dev/public"
      ServerAdmin admin@localhost
      ServerName quantum.dev
      ServerAlias www.quantum.dev
      &lt;Directory "${path}/data/localweb/quantum.dev/public"&gt;
          AllowOverride All
          Options Indexes FollowSymLinks
  
          Order deny,allow
          Allow from quantum.dev
          Deny from all
          Require all granted
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I modified <em>C:\Windows\System32\drivers\etc</em></p>
  
  <p><em>hosts</em></p>
  
  <pre><code>127.0.0.1       quantum.dev
  </code></pre>
  
  <p>When I try to browse <em><a href="http://127.0.0.1/quantum.dev/" rel="nofollow noreferrer">http://127.0.0.1/quantum.dev/</a></em> it will load the listof files and not the project inside public</p>
  
  <p><em><a href="http://127.0.0.1/quantum.dev/" rel="nofollow noreferrer">http://127.0.0.1/quantum.dev/</a></em>
  <a href="https://i.stack.imgur.com/QlwTk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QlwTk.jpg" alt="enter image description here"></a></p>