On 10/30/2020 04:31 AM, Michael wrote:
[snip]
>>
>> This is from apache.conf
>>
>> <Directory />
>>         Options FollowSymLinks
>>         AllowOverride None
>>         Require all denied
>> </Directory>
>>
>> <Directory /usr/share>
>>         AllowOverride None
>>         Require all granted
>> </Directory>
>>
>> <Directory /var/www/>
>>         Options FollowSymLinks
>>         AllowOverride All
>>         Require all granted
>> </Directory>
>>
>> I just search all server .htaccess files for "AllowOverride" but none is
>> active in these files.
>> grep -Rnw '/var/www/html/catalog/' -e 'AllowOverride'
> 
> You wouldn't find "AllowOverride" within an .htaccess file.  This is a 
> directive placed in the main /etc/apache2 configuration files to determine if 
> directives contained in local filesystem .htaccess files will be processed or 
> not.  An 'AllowOverride None' will ignore .htaccess directives and make the 
> server speedier in responding to requests.  TBH .htaccess are typically used 
> locally, when you are not allowed to make changes to the main apache 
> configuration files.  Note, if you changed the name of ".htaccess" with the 
> 'AccessFileName' directive, you may end up missing it.
> 
> Another thing to check is any changes to the default 'DirectoryIndex' types, 
> for the particular subdirectory.  If you have removed index.html or 
> index.html.var in this directive then apache won't serve index files when a 
> directory like admin/ is requested.
> 
> Finally, you could increase the log verbosity to debug level and see if more 
> information is revealed as to the cause of this problem.

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

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


Reply via email to