title: Nginx 403 error: directory index of [folder] is forbidden
body: <p>I have 3 domain names and am trying to host all 3 sites on one server (a Digital Ocean droplet) using Nginx.</p>
  
  <p>mysite1.name
  mysite2.name
  mysite3.name</p>
  
  <p>Only 1 of them works.  The other two result in 403 errors (in the same way).</p>
  
  <p>In my nginx error log, I see: <code>[error] 13108#0: *1 directory index of "/usr/share/nginx/mysite2.name/live/" is forbidden</code>.</p>
  
  <p>My sites-enabled config is:</p>
  
  <pre><code>server {
          server_name www.mysite2.name;
          return 301 $scheme://mysite2.name$request_uri;
  }
  server {
          server_name     mysite2.name;
  
          root /usr/share/nginx/mysite2.name/live/;
          index index.html index.htm index.php;
  
          location / {
                  try_files $uri $uri/ /index.html index.php;
          }
  
          location ~ \.php$ {
                  fastcgi_split_path_info ^(.+\.php)(/.+)$;
                  fastcgi_pass unix:/var/run/php5-fpm.sock;
                  fastcgi_index index.php;
                  include fastcgi_params;
          }
  }
  </code></pre>
  
  <p>All 3 sites have nearly identical config files.</p>
  
  <p>Each site's files are in folders like /usr/share/nginx/mysite1.name/someFolder, and then /usr/share/nginx/mysite1.name/live is a symlink to that. (Same for mysite2 and mysite3.)</p>
  
  <p>I've looked at <a href="https://stackoverflow.com/questions/6795350/nginx-403-forbidden-for-all-files?rq=1">Nginx 403 forbidden for all files</a> but that didn't help. </p>
  
  <p>Any ideas on what might be wrong?</p>