Gentoo Archives: gentoo-user

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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies