LocationやLocationMatchは.htaccessには使えない。
1 2 3 4 5 6 7 8 9 10 11 |
Satisfy Any AuthType Basic AuthName "Restricted Area" AuthUserFile /var/www/.htpasswd require valid-user SetEnvIf Request_URI "/member" secure_dir Order Allow,Deny Allow from all Deny from env=secure_dir |
参考サイト
.htaccess の書き方(アクセス制御編) – Qiita
https://qiita.com/shotets/items/17bed9029140a6d925d2