Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.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:54:00
Message-Id: 2746600.e9J7NaK4W3@lenovo.localdomain
In Reply to: Re: [gentoo-user] Apache 2.4 can not access server subdirectory by thelma@sys-concept.com
1 On Thursday, 29 October 2020 14:10:07 GMT thelma@×××××××××××.com wrote:
2 > On 10/29/2020 06:21 AM, Remco Rijnders wrote:
3 > > On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in
4 > >
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 The above is a .php file.
28
29
30 > index on server/admin/
31 > drwxr-xr-x 6 root root 4096 Oct 28 22:08 admin
32 > -rwxrwxrwx 1 apache apache 428 Oct 28 16:44 index.html
33
34 You shouldn't need apache:apache or 0777 ownership of this file which is very
35 insecure, unless apache is meant to be editing it live. Normally root:root
36 and 0755 is what is used.
37
38 Is 'server/' a subdirectory of '/var/www/'?
39
40 .htaccess won't work if you have disabled it with 'AllowOverride None'.
41
42 > It works on Apache 2.2 but not Apache 2.4
43
44 Directives changed on version 2.4. It would be worth familiarising yourself
45 with the latest:
46
47 https://httpd.apache.org/docs/2.4/upgrading.html

Attachments

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

Replies

Subject Author
Re: [gentoo-user] Apache 2.4 can not access server subdirectory thelma@×××××××××××.com