チップス

ベーシック認証


.htaccess & .htpasswd
 

# ベーシック認証
AuthType Basic
AuthName "Basic authentication."
AuthUserFile /home/users/2/e-piyo/web/hogehoge/.htpasswd
require valid-user
<Files ~ "^.(htpasswd|htaccess)$">
  deny from all
</Files>

 
Linux コマンドで .htpasswd を作成する

htpasswd -c パスワードファイル名 ユーザー名

 
ユーザーの削除

htpasswd -D パスワードファイル名 ユーザー名

 


   チップス