Я получаю эту ошибку в моем /home/act-ss/logs/error.log
:
AH01630: client denied by server configuration: /home/act-ss/cgi-bin/webactivation.cgi
Я использую Apache 2.4 на CentOS 7, каталог и файлы внутри / home / act-ss /
принадлежат apache: apache
, а контекст SELinux - unlimited_u: object_r: httpd_sys_rw_content_t: s0
.
Мои сайты с включенной поддержкой
выглядят так:
<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>
Возможно, вам также понадобится:
<Directory /home/act-ss/cgi-bin/>
Require all granted
</Directory>