FastCGI错误访问脚本被拒绝

我有一个运行nginx + php-fpm + fastcgi的Debian Squeeze服务器。 我在这台运行良好的服务器上安装了一个typo3安装。

不,我安装了OTRS,我得到一个我不明白的错误:

2012/06/25 15:35:38 [error] 16510#0:* 34在stderr中发送了FastCGI:“脚本”/opt/otrs/bin/fcgi-bin/index.pl“的访问被拒绝security.limit_extensions)“,同时读取来自上游的响应头,client:…,server:support ….. com,请求:”GET /otrs/index.pl HTTP / 1.1“,上游:”fastcgi:// 127.0.0.1:9000“,主机:”support ….. com“,referrer:” http://support…..com/ “

为什么我得到这个错误? otrs目录是可写的Web服务器,所以这不是问题。 有任何想法吗?

我有一个与index.html文件类似的问题,就是我从Google那里得到的。 除其他问题之外,从spawn切换到php-fpm给了我的大部分域名“拒绝访问”错误。 我在我的error.log中看到了“see security.limit_extensions”。 受影响的index.html文件也没有任何PHP代码,但我认为NginX仍然试图通过php-fpm执行它们,从而抛出错误。 我正在使用CentOS:

  1. 编辑/etc/php-fpm.d/www.conf

  2. 取消注释此行,默认情况下.htm和.html被阻止:

security.limit_extensions = .php .php3 .php4 .php5 .html .htm

  1. service php-fpm restart

OTRS是用Perl编写的,所以你不能通过PHP-FPM运行它。 这就是为什么你会得到这个错误。 我build议阅读这篇文章 ,了解更多关于使用nginx运行OTRS的信息。

您可以尝试添加到您的网站的nginx conf文件位置/下面的句子:index index.php index.html;