提供:すだちネットWiki
移動: 案内, 検索

Webページパスワード制限(htpasswd)(SL6)

Webページへのアクセスにユーザー名とパスワードによるアクセス制限をかける。

Webサーバー設定

[root@host3 ~]# vi /etc/httpd/conf/httpd.conf

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
#    AllowOverride None
    AllowOverride All ← Allにする(.htaccessを許可)

[root@host3 ~]# /etc/rc.d/init.d/httpd restart ← Webサーバー設定反映
httpd を停止中:                                            [  OK  ]
httpd を起動中:                                            [  OK  ]
案内
ツールボックス
PR
個人用ツール