2013-04-05 35 views
0

我在ubuntu計算機上運行php-cgi的nginx。除了訪問/產生來自nginx的「403 Forbidden」的主要細節之外,事情似乎沒有問題。訪問/index.php工作得很好。如果我添加index.html並轉到/也可以。CGI指數產量403(禁止)

server { 
    root /home/ajcrites/projects/php/devays/public/; 
    server_name sub.localhost; 

    location ~ \.php$ { 
     try_files $uri =404; 
     fastcgi_split_path_info ^(.+\.php)(/.+)$; 
     fastcgi_pass 127.0.0.1:9000; 
     fastcgi_index index.php; 
     include fastcgi_params; 
    } 
} 

這似乎像fastcgi_index index.php;將涵蓋這一點,但顯然並非如此。有什麼我需要添加以獲得/服務/index.php

回答