Basic認証の書き方
Apache2.2
CentOS4
# htpasswd -c /home/hoge/etc/filename hogeuser
# vi /etc/httpd/conf/httpd.conf
-----
<Location "/hogehoge">
AuthType Basic
AuthName "Please input ID and Password !"
AuthUserFile "/home/hoge/etc/filename"
Require valid-user
</Location>
-----