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