title: Laravel access api without domain in virtual hosts
body: <p>I ve got a laravel app all set up and working when my virtual host is set as follows :</p>
  
  <pre><code>ServerName mylaravelproj.com
  
  &lt;Directory /var/www/mylaravelproj/public&gt;
  ..rules here
  </code></pre>
  
  <p>So all i need to do is access mylaravelproj.com/api/whateverRouteHere</p>
  
  <p>However, i wouldnt know how to access the api without a domain name as</p>
  
  <pre><code> DocumentRoot /var/www/mylaravelproj/public
  
  &lt;Directory /var/www/mylaravelproj/public&gt;
  ..rules here
  </code></pre>
  
  <p>doesnt work when accessing 192.168.xxx.xxx/mylaravelproj/public/api/whateverRouteHere</p>
  
  <p>Im quite new to configuring apache and a little confused as to why this doesnt work.</p>