Apache 2.4 doesn't read configuration files

Kernels & Hardware, configuring network, installing services

Apache 2.4 doesn't read configuration files

Postby syscon » 2020-10-29 23:21

The apache 2.4 doesn't read configuration files.
In apache2.conf I have:
Code: Select all
# 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:
Code: Select all
ll sites-enabled/
total 4
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

vhosts.conf - define my web-site, but I commented everything out in that file and restarted apache:
/etc/init.d/apache2 restart

And I can still display my web page.
How is it possible???
Posts: 13
Joined: 2020-10-24 18:35

Re: Apache 2.4 doesn't read configuration files

Postby 5ive » 2020-12-18 04:38

Since, the file 000-default.conf file will be read first. That file would be loaded before vhosts.conf
Apache when installed will be setup to point at an example web page. Perhaps, you copied over that file?

nano 000-default.conf and see what is inside it!
I do not take responsibility if you ruin your system.
Beginner’s Guide
Posts: 3
Joined: 2020-12-13 21:10

Return to System configuration

Who is online

Users browsing this forum: No registered users and 16 guests