[英]CGI script showing as plain text
I have done the following checks: 我已经做了以下检查:
I've done the following in my project.conf file on Vagrant under /sites-enabled: 我已经在/ sites-enabled下的Vagrant的project.conf文件中完成了以下操作:
<Directory /var/www/perl_project/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>
I'm pointing to http://project.local/cgi-bin/routes.cgi?page=reports
in my links, but they bring up the text of the script and don't run them... 我在链接中指向
http://project.local/cgi-bin/routes.cgi?page=reports
,但是它们显示了脚本文本并且不运行它们。
The script isn't displaying any HTML, it is a kind of router where I get query string and based on that load a template toolkit file 该脚本不显示任何HTML,它是一种路由器,我在其中获取查询字符串,并基于该路由器加载模板工具包文件
could someone please help? 有人可以帮忙吗?
I placed my cgi scripts under /usr/lib/cgi-bin
我将cgi脚本放在
/usr/lib/cgi-bin
After installing the mod_cgi module I noticed a /cgi-bin
directory was created under /vagrant
, but that didn't work for some reason so I hunted down the former cgi-bin
directory. 安装mod_cgi模块后,我注意到在
/vagrant
下创建了/cgi-bin
目录,但是由于某种原因该目录不起作用,因此我查找了以前的cgi-bin
目录。
Hope this helps someone 希望这可以帮助某人
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.