Basic認証の設定。
何となく毎回、調べることになるのでメモ。
command
$ vi .htaccess
で、中身が以下。
text
order allow,deny
allow from all
Authname "Secret site"
Authtype Basic
AuthUserFile /var/www/html/www.サイト名/.htpasswd
require valid-user
ユーザの新規作成
command
htpasswd -c /var/www/html/www.サイト名/.htpasswd ユーザ名
#ユーザの追加作成
command
htpasswd /var/www/html/www.サイト名/.htpasswd ユーザ名