From: Keltos Kirpi (keltoskirpi@yahoo.com)
Date: Tue 23 Sep 2003 - 04:47:13 EDT
Yalcin Cekic wrote:
> Selam,
> Web server'daki bir dizin icin bazi IP'lere
> izin verip digerleri icin username-password sormasini
> nasil saglarim..
> simdiden tesekkurler,
> Y.C
Apache /manual/howto/auth.html dosyasindan alinti.
O civarlarda daha detay bulabilirsin.
K
------------------------------------------
Satisfy
The Satisfy directive can be used to specify that several criteria may be
considered when trying to decide if a particular user will be granted
admission. Satisfy can take as an argument one of two options - all or any.
By default, it is assumed that the value is all. This means that if several
criteria are specified, then all of them must be met in order for someone to
get in. However, if set to any, then several criteria may be specified, but
if the user satisfies any of these, then they will be granted entrance.
A very good example of this is using access control to assure that,
although a resource is password protected from outside your network,
all hosts inside the network will be given free access to the resource.
This would be accomplished by using the Satisfy directive, as shown below.
<Directory /usr/local/apache/htdocs/sekrit>
AuthType Basic
AuthName intranet
AuthUserFile /www/passwd/users
AuthGroupFile /www/passwd/groups
Require group customers
Allow from internal.com
Satisfy any
</Directory>
In this scenario, users will be let in if they either have a password,
or if they are in the internal network.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com