我的網路服務器目錄是:
/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 目錄中運行腳本。
然而從我的瀏覽器我仍然得到:
禁止您無權訪問此資源。
Apache/2.4.29 (Ubuntu) 服務器在 warptv.com 埠 80
查看 example.com-error.log 我看到:
AH01630:客戶端被服務器配置拒絕
我知道我錯過了一些東西。已經有一段時間了,但我什至確信該組和所有者都可以是 umast。
我錯過了什么?
uj5u.com熱心網友回復:
添加:
<Directory /var/www/cgi-bin">
Require all granted
</Directory>
將使 Apache 在該目錄中提供檔案。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/425288.html
上一篇:Apache意外關閉xampp
