I've searched all over stackoverflow and seen various posts but no luck thus far.
Let me paint the picture: Im hosting a game server for me and some buddies and im symlinking the directory with maps and mod to apache2. I only want the outside world to be able to download the so called "pk3" files but not the "cfg","log" or any other file type.
That part i got working. I also want autoindex to work but no luck thus far. I get a 403 error.
Current state:
<Directory /var/www/redirect/*>
allow from all
Options +Indexes
IndexIgnore .. *cfg* *dat *dll *txt URL *log *backup* database
IndexOptions FancyIndexing FoldersFirst
AllowOverride None
Require all granted
</Directory>
<Files *>
Order deny,allow
deny from all
</Files>
<Files *.pk3>
Order deny,allow
allow from all
</Files>
<FilesMatch "^(index\.*)?$">
Order allow,deny
allow from all
</FilesMatch>
The FilesMatch doesnt seem to work properly (hence the [access_compat:error] in my logs and 403 in my browser).
Hopefully someone can help me with this, ive been searching for hours.