ApacheによるBasic認証
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
** httpd.confによるBasic認証の設定 [#q3877d13]
- 「htpasswd」プログラムを実行し認証に使用したいユーザの...
~ ※セキュリティ上公開されていないディレクトリに保存。コマ...
# htpasswd -c /etc/httpd/conf/.htpasswd [username]
New password:
Re-type new password:
Adding password for user [username]
- Apache設定ファイルの最終行に以下を追記しBasic認証を有効化
# vi /etc/httpd/conf/httpd.conf
<Directory "/var/www/html"> # Basic認証を設定したいディ...
AuthUserFile /etc/httpd/conf/.htpasswd # 認証ユ...
AuthGroupFile /dev/null
AuthName "Please Enter Your Password"
AuthType Basic
Require valid-user
</Directory>
- Apacheを再起動
# /etc/init.d/httpd restart
終了行:
** httpd.confによるBasic認証の設定 [#q3877d13]
- 「htpasswd」プログラムを実行し認証に使用したいユーザの...
~ ※セキュリティ上公開されていないディレクトリに保存。コマ...
# htpasswd -c /etc/httpd/conf/.htpasswd [username]
New password:
Re-type new password:
Adding password for user [username]
- Apache設定ファイルの最終行に以下を追記しBasic認証を有効化
# vi /etc/httpd/conf/httpd.conf
<Directory "/var/www/html"> # Basic認証を設定したいディ...
AuthUserFile /etc/httpd/conf/.htpasswd # 認証ユ...
AuthGroupFile /dev/null
AuthName "Please Enter Your Password"
AuthType Basic
Require valid-user
</Directory>
- Apacheを再起動
# /etc/init.d/httpd restart
ページ名: