You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by syscon edm <sy...@gmail.com> on 2020/10/30 00:22:53 UTC

[users@httpd] Debian Apache 2.4 doesn't read configuration files

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/
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???

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Debian Apache 2.4 doesn't read configuration files

Posted by Frank <th...@apache.org>.
Define "can still display my web page".

Also, run apachectl -S to see your current vhosts, do not rely on the
debian scripts.

On 29/10/20 08:22 PM, syscon edm wrote:
> 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/
> 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???
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org