i m just working on a private page with some videos, which should only be accessible through htaccess. all videos are html5 encoded, and the site works fine for every browser without the htaccess file.
after putting the htaccess file to my server, safari fails to load the mp4-videos. in charles i get an "401 Authorization Required".
i checked several posts here to the same topic, but didn't found a solution yet. if someone can push m in the right direction, go ahead!
some people solved this issue, while adding the mime types to the htaccess-file (see below). didn t work for me...anyone any ideas?
htaccess at root folder
AuthUserFile /rootpath/.htpasswd
AuthGroupFile /dev/null
AuthName "Password Protected Area"
AuthType Basic
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/mp4 .mov
AddType video/webm .webm
<limit GET POST>
require valid-user
</limit>
htacess in video folder
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/mp4 .mov
AddType video/webm .webm
even checked it with some html5-example videos, so couldn t be wrong codec. keep in mind, it works perfect without the htaccess file, so i guess my configuration is still wrong. but i have no idea where the bug is...