最初にBASIC認証の作成をする際には、データベース作成を
しないといけないので、下記のコマンドを使用します。
ユーザー:suzukiを追加します。 -cの後は、DBの作成場所です。
# htpasswd -c /usr/local/apache/.htpasswd suzuki
New password:
Re-type new password:
Adding password for user ichishi 
次回からは下記のコマンドでいけます。
# htpasswd /usr/local/apache/.htpasswd guest
New password:
Re-type new password:
Adding password for user guest 
最後にディレクティブの設定で制限を掛けたいディレクトリィ
を指定して、制限を掛けます。
AuthUserFile    /usr/local/apache/.htpasswd
AuthGroupFile   /dev/null
AuthName        "Please Enter Your Password"
AuthType        Basic
Require valid-user