我在ubuntu上安装了apache2。我将以下内容添加到/etc/apache2/httpd.conf
文件中
ScriptAlias /cgi-bin/ "/home/PROJECT/cgi-bin/"
如果我将 cgi 文件复制到/usr/lib/cgi-bin/hello.cgi
[DocumentRoot 目录] 并访问 URL http://localhost/cgi-bin/hello.cgi
,我可以打开 cgi 文件,但是如果我将其放入,/home/PROJECT/cgi-bin/hello.cgi
即使ScriptAlias
已设置并重新启动 apache2,我也无法访问该文件。
我在这里缺少什么?