Home > アクセス制限 > Basic認証

Basic認証

.htaccessの作成


ディレクトリ単位でのアクセス制限


AuthUserFile (.htpasswdファイルへの絶対パス)
AuthGroupFile /dev/null
AuthName "Please enter your ID and password"
AuthType Basic
require valid-user


ページ単位でのアクセス制限


AuthUserFile (.htpasswdファイルへの絶対パス)
AuthGroupFile /dev/null
AuthName "Please enter your ID and password"
AuthType Basic
<Files (制限したいファイル名)>
require valid-user
</Files>


.htpasswdの作成



htpasswd -c .htpasswd user_name
New password: *****
Re-type new password: *****
Adding password for user user_name


参考サイト
.htaccess で特定のファイルのみにBasic認証を設定する方法
ベーシック認証を設定する(AuthType)

Comments:0

Comment Form
Remember personal info

Trackbacks:0

Trackback URL for this entry
http://organize.morecrest.com/%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e5%88%b6%e9%99%90/basic%e8%aa%8d%e8%a8%bc.html/trackback
Listed below are links to weblogs that reference
Basic認証 from ホームページの種

Home > アクセス制限 > Basic認証

Tag Cloud
Calendar
« 2010 年 9 月 »
M T W T F S S
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
RSS RSS

Return to page top