[英]Unable to redirect from index.html to a Perl script
我的 web 服務器目錄是:
/var/www/cgi-bin
/var/www/example.com/public_html
在我啟用站點的 conf 文件中,我有:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin/">
Options +ExecCGI
AddHandler cgi-script .cgi
</Directory>
在我的 index.html 中重定向到 index.pl 文件:
<meta http-equiv="refresh" content="0; URL='http://example.com/cgi-bin/uploadstart.pl'">
文件權限為:
-rwxr-xr-x 1 umast www-data 749 Feb 10 22:34 uploadstart.pl
我可以直接在 cgi-bin 目錄中通過命令行運行腳本。
然而,從我的瀏覽器我仍然得到:
Forbidden 您無權訪問此資源。
Apache/2.4.29 (Ubuntu) 服務器在 warptv.com 端口 80
查看 example.com-error.log 我看到:
AH01630:客戶端被服務器配置拒絕
我知道我錯過了什么。 已經有一段時間了,但我什至確定該組和所有者都可以是 umast。
我錯過了什么?
添加:
<Directory /var/www/cgi-bin">
Require all granted
</Directory>
將使 Apache 提供該目錄中的文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.