1 |
On 10/30/2020 11:55 AM, Michael wrote: |
2 |
> On Friday, 30 October 2020 16:27:05 GMT thelma@×××××××××××.com wrote: |
3 |
> |
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 |
> |
23 |
>> vhosts.conf - define my web-site, but I commented everything out in that |
24 |
>> file (it is empty) and restarted apache: |
25 |
>> /etc/init.d/apache2 restart |
26 |
>> |
27 |
>> And I can still display my web page. |
28 |
>> How is it possible??? |
29 |
> |
30 |
> I would assume it is possible to still display your website because the main |
31 |
> apache2.conf and/or ./sites-available/000-default.conf contain some default |
32 |
> settings which specify the DocumentRoot where your website 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 what |
36 |
> 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 :-/ |