Nginx fastcgi_index index.php not working
<p>I'm working on setting up a development environment, but for some reason the fastcgi_index is not working. The difference between the production and dev environment is the listening port of nginx. Other than that, it's the same. In production, it's 80, and on dev it's 8080.</p>

<p>When I go to <a href="http://domain.com:8080" rel="nofollow">http://domain.com:8080</a>, I get Forbidden 403 forbidden. If I put index in there, I get the file ie: <a href="http://domain.com:8080/index.php" rel="nofollow">http://domain.com:8080/index.php</a></p>

<p>Directory permission is 755 and index.php is readable by everyone. I don't think it's a permission issue since navigating directly to the file works.</p>

<p>This is what I have in the conf:</p>

<pre><code>location ~ \.php$ {
            try_files $uri =404;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index index.php;
            include /etc/nginx/fastcgi.conf;
            fastcgi_read_timeout 180;
}
</code></pre>

<p>My guess it has to do something with the port 8080? Again, that should be the only difference between the 2 servers.</p>