修改了域名指向的目录之后,在运行pl脚本的时候,就出现了这个问题。
原因:在http.conf中,定义的pl运行位置是/var/www/cgi-bin/,而现在,运行的位置变化了,需要重新说明。
解决方法:
在http.conf中加入:
<Directory "/var/www/cgi-bin/pipeWeb-bin/">
Options +ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>
然后/usr/local/apache2/bin/apachectl restart
原因:在http.conf中,定义的pl运行位置是/var/www/cgi-bin/,而现在,运行的位置变化了,需要重新说明。
解决方法:
在http.conf中加入:
<Directory "/var/www/cgi-bin/pipeWeb-bin/">
Options +ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>
然后/usr/local/apache2/bin/apachectl restart