Apache の「.htaccess」のシンプル・サンプル
いつも忘れ、そして悩むのでこれをメモ。
/var/www/userdir/.htaccess
AuthUserFile /home/username/.htpasswd AuthGroupFile /dev/null AuthName "ByPassword" AuthType Basic <Limit GET> require valid-user </Limit>
.htpasswd 作成方法
htpasswd -c /home/username/.htpasswd webuser