小编sha*_*and的帖子

$ document_root上的nginx和尾部斜杠?

我对nginx使用以下配置:http://gist.github.com/340956

但是,此配置会导致No input file specifiedPHP出错.我能够解决它的唯一方法是改变这一行:

fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;

注意$document_root和之间的"/" $fastcgi_script_name.我被告知这是错误的配置,但没有人能够告诉我为什么我的配置需要这个额外的斜杠.

我怎样才能摆脱那些额外的斜线?

php nginx slash trailing

10
推荐指数
1
解决办法
3545
查看次数

标签 统计

nginx ×1

php ×1

slash ×1

trailing ×1