Apache Basic認証の設定

・パスワードファイルの新規作成

# htpasswd -c /etc/httpd/htpasswd username

・ユーザの追加

# htpasswd /etc/httpd/htpasswd username

httpd.conf の編集

# vi /etc/httpd/conf/httpd.conf


    AuthUserFile  /etc/httpd/htpasswd
    AuthGroupFile /dev/null
    AuthName      "Please Enter Password"
    AuthType      Basic
    Require       valid-user