I can't get file blocking working. If I use the following statement in .htaccess, it blocks my whole site:
order allow,deny
<Files ~ ".*\.(js|JS|css|CSS|jpg|JPG|gif|GIF|png|PNG|mp4|MP4)$">
allow from all
</Files>
I'm running apache 2.2.22 (Debian)
If I comment out the above lines I can access my site again. In case it's not clear, I'm trying to block all files from being downloaded from my except for the allowed file types.
There are numerous posts on this general subject here and on other sites, but I've been at this for 2 or 3 hours now, and I can't get this problem to budge. I'm sorry if it seems obvious.
Note: AllowOverrides is definitely on. I've grepped for AllowOverrides in all of the conf directories and the included directories and it's turned on everywhere right now. I've restarted the apache2 service when conf changes have been made.
Can anyone see what I've done wrong?