Apache server doesn’t show pages anymore after an update. I see a acces denied message when opening a site on my localhost. I didn’t change any conf files. When inspecting httpd.conf en server-default.conf I found nothing strange visually. Als .htacces did not change. What am I missing? Where to begin?
Message on a webpage (translated)
Access prohibited!
You do not have permission to access the requested folder. There is either no index document or the folder is read protected.
If you believe this server is at fault, please contact the webmaster.
Error 403
Content of apache2 error_log
[Sat May 06 15:06:18.401422 2023] [autoindex:error] [pid 29594] [client 192.168.1.10:60986] AH01276: Cannot serve directory /bern/webserver/: No matching DirectoryIndex (index.html,index.html.var) found, and server-generated directory index forbidden by Options directive
Part of httpd.conf with DirectoryIndex
# forbid access to the entire filesystem by default
Options None
AllowOverride None
<IfModule !mod_access_compat.c>
Require all denied
Order deny,allow
Deny from all
use .htaccess files for overriding,
AccessFileName .htaccess
and never show them
<Files ~ “^.ht”>
<IfModule !mod_access_compat.c>
Require all denied
Order allow,deny
Deny from all
List of resources to look for when the client requests a directory
DirectoryIndex index.html index.html.var
‘Main’ server configuration
The directives in this section set up the values used by the ‘main’
server, which responds to any requests that aren’t handled by a
definition. These values also provide defaults for
any containers you may define later in the file.
All of these directives may appear inside containers,
in which case these default settings will be overridden for the
virtual host being defined.
Include /etc/apache2/default-server.conf
Part of server-default.conf with DirectoryIndex
#
Global configuration that will be applicable for all virtual hosts, unless
deleted here, or overriden elswhere.
DocumentRoot “/bern/webserver”
Configure the DocumentRoot
<Directory “/bern/webserver”>
# Possible values for the Options directive are “None”, “All”,
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that “MultiViews” must be named explicitly — “Options All”
# doesn’t give it to you.
#
# The Options directive is both complicated and important. Please see
# core - Apache HTTP Server Version 2.4
# for more information.
# NOTE: For directories where RewriteRule is used, FollowSymLinks
# or SymLinksIfOwnerMatch needs to be set in Options directive.
Options None
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be “All”, “None”, or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride None
# Controls who can get stuff from this server.
<IfModule !mod_access_compat.c>
Require all granted
Order allow,deny
Allow from all
What to do to make it work again?