apache - Deny all filetypes but 1 and allow autoindexing -
i've searched on stackoverflow , seen various posts no luck far.
let me paint picture: im hosting game server me , buddies , im symlinking directory maps , mod apache2. want outside world able download called "pk3" files not "cfg","log" or other file type.
that part got working. want autoindex work no luck far. 403 error.
current state:
<directory /var/www/redirect/*> allow options +indexes indexignore .. *cfg* *dat *dll *txt url *log *backup* database indexoptions fancyindexing foldersfirst allowoverride none require granted </directory> <files *> order deny,allow deny </files> <files *.pk3> order deny,allow allow </files> <filesmatch "^(index\.*)?$"> order allow,deny allow </filesmatch>
the filesmatch doesnt seem work (hence [access_compat:error] in logs , 403 in browser).
hopefully can me this, ive been searching hours.
Comments
Post a Comment