1 |
On Friday, 30 October 2020 16:27:05 GMT thelma@×××××××××××.com wrote: |
2 |
|
3 |
> I have a bigger problem. |
4 |
> The apache 2.4 doesn't read configuration files. |
5 |
> In apache2.conf I have: |
6 |
> |
7 |
> # Include the virtual host configurations: |
8 |
> IncludeOptional sites-enabled/*.conf |
9 |
> |
10 |
> So it should read read every *config file in sites-enabled/ |
11 |
> In that directory I have: |
12 |
> |
13 |
> ll sites-enabled/ |
14 |
> lrwxrwxrwx 1 root root 35 Oct 27 21:15 000-default.conf -> |
15 |
> ../sites-available/000-default.conf |
16 |
> -rw-r--r-- 1 root root 3420 Oct 29 18:03 vhosts.conf |
17 |
|
18 |
I have different configuration files, one for each website. This makes it |
19 |
easier to know where to look and what to edit when I want to make changes. |
20 |
|
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 main |
30 |
apache2.conf and/or ./sites-available/000-default.conf contain some default |
31 |
settings which specify the DocumentRoot where your website filesystem resides. |
32 |
|
33 |
Your approach to start from first principles by commenting out individual |
34 |
configurations is sound, because you can check in this way what works and what |
35 |
does not. |