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: Fri, 30 Oct 2020 18:34:48
Message-Id: 1859619.jZfb76A358@lenovo.localdomain
In Reply to: Re: [gentoo-user] Apache 2.4 can not access server subdirectory by thelma@sys-concept.com
1 On Friday, 30 October 2020 18:29:18 GMT thelma@×××××××××××.com wrote:
2 > On 10/30/2020 11:55 AM, Michael wrote:
3 > > On Friday, 30 October 2020 16:27:05 GMT thelma@×××××××××××.com wrote:
4 > >> I have a bigger problem.
5 > >> The apache 2.4 doesn't read configuration files.
6 > >> In apache2.conf I have:
7 > >>
8 > >> # Include the virtual host configurations:
9 > >> IncludeOptional sites-enabled/*.conf
10 > >>
11 > >> So it should read read every *config file in sites-enabled/
12 > >> In that directory I have:
13 > >>
14 > >> ll sites-enabled/
15 > >> lrwxrwxrwx 1 root root 35 Oct 27 21:15 000-default.conf ->
16 > >> ../sites-available/000-default.conf
17 > >> -rw-r--r-- 1 root root 3420 Oct 29 18:03 vhosts.conf
18 > >
19 > > I have different configuration files, one for each website. This makes it
20 > > easier to know where to look and what to edit when I want to make changes.
21 > >
22 > >> vhosts.conf - define my web-site, but I commented everything out in that
23 > >> file (it is empty) and restarted apache:
24 > >> /etc/init.d/apache2 restart
25 > >>
26 > >> And I can still display my web page.
27 > >> How is it possible???
28 > >
29 > > I would assume it is possible to still display your website because the
30 > > main apache2.conf and/or ./sites-available/000-default.conf contain some
31 > > default settings which specify the DocumentRoot where your website
32 > > filesystem resides.
33 > >
34 > > Your approach to start from first principles by commenting out individual
35 > > configurations is sound, because you can check in this way what works and
36 > > what does not.
37 >
38 > I check all configuration files for "DocumentRoot" and all the files
39 > have DocumentRoot commented out (so nothing is active)
40 > grep -Rnw '/etc/apache2/' -e 'DocumentRoot'
41 >
42 > Restarted apache 2.4 and the web-page is still loading :-/
43
44 ServerRoot specified somewhere? Increase log verbosity and see what it
45 reports, otherwise I'm out of ideas!

Attachments

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

Replies

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