古い記事
ランダムジャンプ
新しい記事
今さらながら、Web サイトの一部に Basic 認証。

.htaccess:
AuthUserFile /home/yto/.htpasswd
AuthGroupFile /dev/null
AuthName "Please enter your ID and password"
AuthType Basic
require valid-user
(or "require user oreore")

パスワードファイルの作成:
% 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>

この記事に言及しているこのブログ内の記事