title: 403 Forbidden on nginx + passenger + sinatra
body: <p>I've looked through a ton of posts but I just can't get past this 403 Forbidden error. I have:</p>
  
  <ol>
  <li>Updated nginx user permissions on website folder</li>
  <li>Updated passenger_ruby to use RVM wrapper directory</li>
  <li>Confirmed passenger_root path with passenger-config --root</li>
  </ol>
  
  <p>I'm still getting a 403 and can't seem to find what I am missing.</p>
  
  <p>Here are my files below.</p>
  
  <p><strong>Folder Structure</strong> (755 www-data):</p>
  
  <pre><code>--website
  ----app
  ----public
  ----tmp
  ----views
  ----config.ru
  </code></pre>
  
  <p><strong>config.ru</strong>:</p>
  
  <pre><code>require 'rubygems'
  require 'sinatra'
  
  set :environment, ENV['RACK_ENV'].to_sym
  disable :run, :reload
  
  require File.expand_path '../app/main.rb', __FILE__
  
  run Sinatra::Application
  </code></pre>
  
  <p><strong>Server .conf</strong>:</p>
  
  <pre><code>server {
    listen 80;
    server_name website.com;
  
    root /www/website/public;   # &lt;--- be sure to point to 'public'!
    passenger_enabled on;
  }
  </code></pre>
  
  <p><strong>Nginx .conf</strong>:</p>
  
  <pre><code>passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
  passenger_ruby /usr/local/rvm/wrappers/ruby-2.2.1/ruby;
  </code></pre>
  
  <p><strong>Example main.rb</strong>:</p>
  
  <pre><code> Require 'slim'
   get "/"
       slim: index
   do
  </code></pre>
  
  <p><strong>Sites Error Log:</strong></p>
  
  <pre><code>2015/07/28 19:09:45 [error] 34000#0: *2 directory index of "/www/website/public/" is forbidden, client: 0.0.0.0, server: website.com, request: "GET / HTTP/1.1", host: "website.com"
  </code></pre>