错误信息是:
command not in docroot (/home/site1/cgi-bin/test.pl).
Here我发现了这个:
suexec requires the CGI script to be under the server’s DocumentRoot (not the VirtualHost DocumentRoot). It is permitted,however,for the VirtualHost DocumentRoot to be a symlink to a directory that appears under the real DocumentRoot.
虚拟主机配置的一部分是:
[...]
DirectoryIndex index.html index.html index.PHP
DocumentRoot /home/site1/htdocs
SuexecUserGroup site1 site1
ScriptAlias /cgi-bin/ /home/site1/cgi-bin/
所以,我更喜欢在cgi-bin中使用Perl脚本,但是如果我无法解决这个问题,我可以将所有脚本移动到htdocs.
最佳答案
原文链接:https://www.f2er.com/linux/440310.html