【发布时间】:2016-03-17 11:05:44
【问题描述】:
我将所有网站移到另一台服务器上,一切正常,但是我的 perl 脚本没有运行,显示为纯文本。
必须在此 URL 上运行 perl 脚本。
该网站的虚拟主机如下:
<virtualhost *:80>
ServerName prestoprint.ca
ServerAlias www.prestoprint.ca
ServerAdmin zadmin@localhost
DocumentRoot "/path/prestoprint_ca"
ErrorLog "/path/prestoprint_ca/error/error.log"
ScriptAlias /cgi-bin/ /path/prestoprint_ca/cgi-bin/
<Directory "/path/prestoprint_ca">
Options +FollowSymLinks +Indexes
AllowOverride All
Require all granted
AddHandler cgi-script .cgi .pl
</Directory>
<Directory "/path/prestoprint_ca/cgi-bin">
Options +ExecCGI
SetHandler cgi-script
</Directory>
AddType application/x-httpd-php .php3 .php
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm filechucker.cgi
</virtualhost>
真的需要帮助:(
非常感谢!
【问题讨论】: