So, I want to achieve something which should be easy: I want my Apache webserver to deliver its automatically generated directory listing since it is about statics HTML and PDF files.
However, I always receive an HTTP 403 response.
The error log says:
AH01276: Cannot serve directory /var/www/html/my-website/: No matching DirectoryIndex (index.php,index.html,index.htm) found, and server-generated directory index forbidden by Options directive
And this is the output of ls -l /var/www/html/my-website
:
drwxr-xr-x. 18 root root 4096 Jul 5 10:06 /var/www/html/my-website
And from getfacl /var/www/html/my-website
:
getfacl: Removing leading '/' from absolute path names
# file: var/www/html/my-website
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
This is, stripped down to the relevant aspects, the virtual host configuration section:
<VirtualHost 192.168.1.2:80>
ServerName my-website.local
AddDefaultCharset iso-8859-1
DirectoryIndex index.php index.html index.htm
Alias / /var/www/html/my-website/
DocumentRoot /var/www/html/my-website/
<Directory /var/www/html/my-website/>
AllowOverride none
Options +Indexes
</Directory>
</VirtualHost>
So, since o+rx
is set, I expect it to be readable. What else am I missing?