/var/log/httpd/error_log 给出如下的错误
[error] [client 127.0.0.1] attempt to invoke directory as script: /var/www/cgi-bin/
修改/etc/httpd/conf/httpd.conf的以下内容
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
AllowOverride None
Options None
Order allow,deny
Allow from all
修改为
Alias /cgi-bin/ "/var/www/cgi-bin/"
AllowOverride None
AddHandler cgi-script pl cgi
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
阅读(5895) | 评论(0) | 转发(0) |