Gentoo Archives: gentoo-user

From: "Remco Rijnders" <remco@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Apache 2.4 can not access server subdirectory
Date: Thu, 29 Oct 2020 16:41:04
Message-Id: X5rwfgWeasjeEf+3@settler
In Reply to: Re: [gentoo-user] Apache 2.4 can not access server subdirectory by thelma@sys-concept.com
1 On Thu, Oct 29, 2020 at 08:10:07AM -0600, thelma wrote in
2 <474d741a-a72d-e3ff-f771-5c7ecd72c31b@×××××××××××.com>:
3 >On 10/29/2020 06:21 AM, Remco Rijnders wrote:
4 >> On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in
5 >> <7b3d3416-77b0-02eb-ad05-f717fdf0b6a4@×××××××××××.com>:
6 >>> After installing apache 2.4 I can not access server subdirectory:
7 >>> server/admin/index.html
8 >>>
9 >>> Forbiden
10 >>> You don't have permission to access /admin/index.html on this server
11 >>>
12 >>> I can access index.html in a directory below /admin (server/index.html)
13 >>> but not the server/admin/index.html
14 >>
15 >> That seems to suggest that either the permissions or ownership of
16 >> admin/index.html are different from admin/server/index.html, or that
17 >> there is a
18 >> difference of that kind between the directories admin/ and admin/server.
19 >> Are
20 >> they?
21 >
22 >Here are the permissions:
23 >
24 >index on server/
25 >-rw-r--r-- 1 root root 19078 Jan 14 2011 index.php
26 >
27 >index on server/admin/
28 >drwxr-xr-x 6 root root 4096 Oct 28 22:08 admin
29 >-rwxrwxrwx 1 apache apache 428 Oct 28 16:44 index.html
30 >
31 >It works on Apache 2.2 but not Apache 2.4
32
33 Hi Thelma,
34
35 Please help us help you a little better. As I understand it, you have two
36 index.html files, but you show only one above. What role does index.php have in
37 all this? I am also unclear if your set up is server/admin or admin/server, as
38 you used both in your first message. So, all in all, I am a little confused as
39 to what your exact problem is and what the exact permissions on all the
40 directories and index.html files involved are.
41
42 Thanks!