memo.xight.org

/ / memo.xight.org

2004-07-18

Basic 認証をかけるが,特定のホストは認証なしで通過させる方法

AuthUserFile /path/to/.htpasswd
AuthGroupFile /dev/null
AuthName "Please enter username and password"
AuthType Basic
 
Require valid-user
Satisfy any
 
Order deny,allow
Allow from 192.168.0.0/24
Deny from all


- Satisfyがキモらしい
Satisfy all Basic認証 and ホスト認証 の両方が通過しないとダメ.デフォルトはこっち.
Satisfy any Basic認証 or ホスト認証 のどちらかが通過すれば OK.

- Reference
  cl.pocari.org - 2003-06-01
  http://cl.pocari.org/2003-06.php#2003-06-01-1
  ミケネコのhtaccessリファレンス
  http://mikeneko.creator.club.ne.jp/~lab/web/htaccess/auth.html#Satisfy
カテゴリ: [Apache]
内部リンク: [2006-08-07-6]
2004-07 /

Color Reference

ChangeLogを検索
携帯電話からアクセス!

カテゴリ

最近の話題

リンク

過去ログ

Google

QR Code

Since
2002-11-28
Update
2008-12-02 10:52
Copyright © 2005 xight.org All Rights Reserved.