title: Laravel: 403 when trying to access any folder/file in /public
body: <p>I got Laravel's 4.2  homestead server (nginx).
  So, if I write in any view something like this:</p>
  
  <pre><code>&lt;script src="media/js/application.js"&gt;&lt;/script&gt;
  &lt;link rel="icon" href="media/img/branding/favicon.png" type="image/x-icon"&gt;
  &lt;link rel="stylesheet" href="media/css/markdown.css"&gt;
  </code></pre>
  
  <p>It includes all files propetly, but code below doesn't work (<strong>403 error</strong>):</p>
  
  <pre><code>&lt;div style="background-image: url(media/img/image.jpg)"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Also, if I try to access some folder/file in /public directly it returns 403 too. Why? That's my nginx site config (the truth is this is a auto-generated homestead config):</p>
  
  <pre><code>vagrant@homestead:~/work/Timetable$ cat /etc/nginx/sites-enabled/timetable.dev 
  server {
      listen 80;
      listen 443 ssl;
      server_name timetable.dev;
      root "/home/vagrant/work/Timetable/public";
  
      index index.html index.htm index.php;
  
      charset utf-8;
  
      location / {
          try_files $uri $uri/ /index.php?$query_string;
      }
  
      location = /favicon.ico { access_log off; log_not_found off; }
      location = /robots.txt  { access_log off; log_not_found off; }
  
      access_log off;
      error_log  /var/log/nginx/timetable.dev-error.log error;
  
      sendfile off;
  
      client_max_body_size 100m;
  
      location ~ \.php$ {
          fastcgi_split_path_info ^(.+\.php)(/.+)$;
          fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
          fastcgi_index index.php;
          include fastcgi_params;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  
          fastcgi_intercept_errors off;
          fastcgi_buffer_size 16k;
          fastcgi_buffers 4 16k;
          fastcgi_connect_timeout 300;
          fastcgi_send_timeout 300;
          fastcgi_read_timeout 300;
      }
  
      location ~ /\.ht {
          deny all;
      }
  
      ssl_certificate     /etc/nginx/ssl/timetable.dev.crt;
      ssl_certificate_key /etc/nginx/ssl/timetable.dev.key;
  }
  </code></pre>