ngxin
也沒有任何報錯
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
安裝完nginx後默認的fastcgi_params配置文件中沒有上面這句話
在nginx
location ~
root html;
fastcgi_pass
fastcgi_index index
#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
或者在fastcgi_params配置文件中加入
# PHP only
fastcgi_param REDIRECT_STATUS
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
然後重啟nginx就可以顯示出頁面了
From:http://tw.wingwit.com/Article/program/PHP/201311/21208.html