BASIC認証
AuthType Basic
AuthName "Secret Zone"
AuthUserFile "[.htpasswdの場所]"
Require user secret [admin admin追加したユーザとPW]
AuthBasicAuthoritative Off
・.htpasswdの追加
~apache\bin>
htpasswd -mc [c:\apache2\.htpasswd] [ユーザ名]
・locationを追加する時
http.confの
Options FollowSymLinks
AllowOverride None
Order deny,allow
#Deny from all「ここをコメントオウト」