From: thelma@sys-concept.com
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Apache 2.4 can not access server subdirectory
Date: Fri, 30 Oct 2020 12:29:18 -0600 [thread overview]
Message-ID: <7fd12872-f168-fffe-8658-d78d2dedbe8b@sys-concept.com> (raw)
In-Reply-To: <2519420.q0ZmV6gNhb@lenovo.localdomain>
On 10/30/2020 11:55 AM, Michael wrote:
> On Friday, 30 October 2020 16:27:05 GMT thelma@sys-concept.com wrote:
>
>> I have a bigger problem.
>> The apache 2.4 doesn't read configuration files.
>> In apache2.conf I have:
>>
>> # Include the virtual host configurations:
>> IncludeOptional sites-enabled/*.conf
>>
>> So it should read read every *config file in sites-enabled/
>> In that directory I have:
>>
>> ll sites-enabled/
>> lrwxrwxrwx 1 root root 35 Oct 27 21:15 000-default.conf ->
>> ../sites-available/000-default.conf
>> -rw-r--r-- 1 root root 3420 Oct 29 18:03 vhosts.conf
>
> I have different configuration files, one for each website. This makes it
> easier to know where to look and what to edit when I want to make changes.
>
>
>> vhosts.conf - define my web-site, but I commented everything out in that
>> file (it is empty) and restarted apache:
>> /etc/init.d/apache2 restart
>>
>> And I can still display my web page.
>> How is it possible???
>
> I would assume it is possible to still display your website because the main
> apache2.conf and/or ./sites-available/000-default.conf contain some default
> settings which specify the DocumentRoot where your website filesystem resides.
>
> Your approach to start from first principles by commenting out individual
> configurations is sound, because you can check in this way what works and what
> does not.
I check all configuration files for "DocumentRoot" and all the files
have DocumentRoot commented out (so nothing is active)
grep -Rnw '/etc/apache2/' -e 'DocumentRoot'
Restarted apache 2.4 and the web-page is still loading :-/
next prev parent reply other threads:[~2020-10-30 18:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-29 4:36 [gentoo-user] Apache 2.4 can not access server subdirectory thelma
2020-10-29 12:21 ` Remco Rijnders
2020-10-29 14:10 ` thelma
2020-10-29 16:40 ` Remco Rijnders
2020-10-29 16:53 ` Michael
2020-10-29 19:59 ` thelma
2020-10-30 10:31 ` Michael
2020-10-30 16:27 ` thelma
2020-10-30 17:55 ` Michael
2020-10-30 18:29 ` thelma [this message]
2020-10-30 18:34 ` Michael
2020-11-01 5:01 ` thelma
2020-11-01 10:04 ` [SOLVED] " Michael
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7fd12872-f168-fffe-8658-d78d2dedbe8b@sys-concept.com \
--to=thelma@sys-concept.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox