ベーシック認証のメモ
2003-09-10-1
[Tips]
今さらながら、Web サイトの一部に Basic 認証。
.htaccess:
パスワードファイルの作成:
ユーザの追加:
参考:
<http://www.shtml.jp/htaccess/basic.html>
<http://www.atmarkit.co.jp/flinux/rensai/apache10/apache10b.html>
<http://www.atmarkit.co.jp/flinux/rensai/apache09/apache09b.html>
.htaccess:
(or "require user oreore")AuthUserFile /home/yto/.htpasswd AuthGroupFile /dev/null AuthName "Please enter your ID and password" AuthType Basic require valid-user
パスワードファイルの作成:
% htpasswd -c /home/yto/.htpasswd test New password: Re-type new password: Adding password for user test
ユーザの追加:
% htpasswd /home/yto/.htpasswd oreore
参考:
<http://www.shtml.jp/htaccess/basic.html>
<http://www.atmarkit.co.jp/flinux/rensai/apache10/apache10b.html>
<http://www.atmarkit.co.jp/flinux/rensai/apache09/apache09b.html>
この記事に言及しているこのブログ内の記事