Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: [gentoo-user] Another apache 2.4 - Forbidden: You don't have permission to access this resource.
Date: Thu, 03 Dec 2020 04:09:26
Message-Id: 00113c24-b2d3-d8ff-daf8-a2141a5a2054@sys-concept.com
1 When I try to configure sql-ledger, /localhost/sql-ledger/index.html
2 I get an error: Forbidden: You don't have permission to access this resource.
3
4 Apache starts normally but there is an entry in /var/logs/apache/error_log (how to make it go way)
5
6 [:notice] [pid 5015] ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/) configured.
7 [:notice] [pid 5015] ModSecurity: APR compiled version="1.7.0"; loaded version="1.7.0"
8 [:notice] [pid 5015] ModSecurity: PCRE compiled version="8.44 "; loaded version="8.44 2020-02-12"
9 [:notice] [pid 5015] ModSecurity: LIBXML compiled version="2.9.10"
10 [:notice] [pid 5015] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
11 [mpm_prefork:notice] [pid 5016] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.1.1g PHP/7.4.11 configured -- resuming normal operations
12 Wed Dec 02 20:38:26.746392 2020] [core:notice] [pid 5016] AH00094: Command line: '/usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP -D SECURITY -d /usr/lib64/apache2 -f /etc/apache2/httpd.conf'
13 [authz_core:error] [pid 4900] [client ::1:46226] AH01630: client denied by server configuration: /usr/local/sql-ledger/index.html
14
15
16 The above error log entry has nothing to with the below configuration except the last line:
17 [authz_core:error] [pid 4900] [client ::1:46226] AH01630: client denied by server configuration: /usr/local/sql-ledger/index.html
18
19 My sql-ledger_apache.config 2.4 config
20
21 Alias /sql-ledger /usr/local/sql-ledger/
22 <Directory /usr/local/sql-ledger>
23 AllowOverride All
24 AddHandler cgi-script .pl
25 AddDefaultCharset On
26 Options ExecCGI Includes FollowSymlinks
27 Require ip 10.0.0.109
28 </Directory>
29
30 <Directory /usr/local/sql-ledger/users>
31 Require all denied
32 </Directory>
33
34 All the configuration entries are in main server (not in .htaccess)
35
36 --
37 Thelma

Replies