AH01630:服务器配置拒绝客户端:/home/act-ss/cgi-bin/webactivation.cgi

AH01630:服务器配置拒绝客户端:/home/act-ss/cgi-bin/webactivation.cgi

我在我的中收到此错误/home/act-ss/logs/error.log

AH01630: client denied by server configuration: /home/act-ss/cgi-bin/webactivation.cgi

我在 CentOS 7 上使用 Apache 2.4,里面的目录和文件/home/act-ss/归 拥有apache:apache,SELinux 上下文是unconfined_u:object_r:httpd_sys_rw_content_t:s0

我的sites-enabled样子是这样的:

<VirtualHost *:80>
DocumentRoot "/home/act-ss/www"
ServerName mywebsite.com
CustomLog /home/act-ss/logs/access.log combined
ErrorLog /home/act-ss/logs/error.log
ScriptAlias /cgi-bin/ "/home/act-ss/cgi-bin/"
<Directory "/home/act-ss/www">
AllowOverride all
Require all granted
Options -Indexes
Options +ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>
RewriteEngine on
RewriteCond %{SERVER_NAME} =mywebsite.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,NE,R=permanent]
</VirtualHost>

答案1

也许你还需要:

<Directory /home/act-ss/cgi-bin/>
  Require all granted
</Directory>

相关内容