ディレクトリをApache認証で保護したいのですが、ファイルは1つなので、次のようにしました。
<ディレクトリ /path/to/dir>
AuthType Basic
AuthName "Private Pages"
AuthBasicProvider file
AuthUserFile /path/to/.htpasswd
require user userid
<FilesMatch "^exception.html$">
Order Allow,Deny
allow from All
</FilesMatch>
</ディレクトリ>
しかし、すべてのファイルがパスワードを要求するわけではありません。ファイル名のドットの前に \ と :
<File exception.html>
exception.html を含むすべてのファイルのパスワードを要求するのに役立つものはありません
私が間違っていることは何ですか?
ありがとう