title: laravel 4 using a subdomain
body: <p>I am running laravel on a subdomain i.e. subdomain.mysite.com</p>
  
  <p>I have setup my structure like this:</p>
  
  <pre><code>username
  -public_html
  --subdomain
  ---public
  </code></pre>
  
  <p>Basically, when I created my subdomain the path I set was <code>subname/public</code> so the subdomain points to the public folder. I have uploaded laravel to subname so when someone goes to the subdomain url it looks at the public folder and it shows the laravel You have arrived page.</p>
  
  <p>Now when I browse to mysite.com/subname it gives me a forbidden page and when I browse to mysite.com/subname/public it shows the laravel you have arrive logo.</p>
  
  <p>Is it safe to set-up laravel on a subdomain this way or am I exposing the app / model / controller folders etc?</p>
  
  <p>Is this just very bad and should i move the laravel core files above public_html?</p>
  
  <p>I hope this makes sense</p>
  
  <p>Thanks</p>