// 下階層用テンプレート #topicpath ---- //ここにコンテンツを記述します。 httpd.confで以下の項目追加 <Directory "/opt/awstats/wwwroot"> <-認証をかけたいディレクトリ AuthType Basic AuthName "Awstats Secret Zone" AuthUserFile /etc/httpd/conf/.htpasswd Require user hogehogehoge <-ユーザ名 </Directory> ((Require user hogehogehoge は Require valid-userでもよいっぽい )) 以下のコマンドを実行 [root@www conf]# htpasswd -c /etc/httpd/conf/.htpasswd hogehogehoge New password: Re-type new password: Adding password for user hogehogehoge [root@www conf]# ちなみにオプションの-cは上書きですね。上書きしないで追加の場合は何もオプションをつけなくてよいです。 ***関連リンク [#se8f373f] -[[Apacheでユーザー認証を行うには(Basic認証編)>http://www.atmarkit.co.jp/flinux/rensai/linuxtips/698apachebasic.html]] ---- この記事は #vote(おもしろかった[3],そうでもない[5]) #topicpath SIZE(10){現在のアクセス:&counter;}