Uni.APACHE History
Show minor edits - Show changes to markup
Changed lines 30-31 from:
to:
Changed lines 59-62 from:
to:
Changed lines 28-59 from:
to:
@]
SOLUZIONE
(:table border=1 cellspacing=0 :)
(:cellnr align=left:)
Richiesta di accesso
(:cell align=center:)
Decisione (permit/deny)
(:cell align=center:)
Motivazione
(:cellnr width=50% align=left:)
Da Bob, membro gruppo admin, su file index.html e proveniente dal dominio www.mysite.org
(:cell align=center:)
permit
(:cell align=center:)
Essendoci Satisfy any le autorizzazioni host_based e user_base si combinano, vuol dire che ne deve essere soddisfatta almeno una. In questo caso la richiesta è permessa per la presenza del Require group staff.admin
(:cellnr width=50% align=left:)
Da Sam sul file privato.html
(:cell align=center:)
permit
(:cell align=center:)
La presenza di Satisfy any basta che siano soddisfatte o le autorizzazioni user_based o host_based. In questo caso sono soddisfatte le user-based Require user Sam
(:cellnr width=50% align=left:)
Da Alice su index.html, proviene dal dominio trust.org
(:cell align=center:)
deny
(:cell align=center:)
Alice non appartiene né al gruppo staff, né al gruppo admin. Tutte le autorizzazioni user_based sono negate. Controllo allora le autorizzazioni host_based partendo a controllare le Allow. Le Allow non si applicano, allora passo alle Deny. Dato che si applica la Deny Deny from trust.org la richiesta è negata
(:tableend:)
Changed lines 22-26 from:
Satisfy any
Deny from all
Deny from env=myprefsite
Require user Sam
Order Allow, Deny
to:
Satisfy any
Deny from all
Deny from env=myprefsite
Require user Sam
Order Allow, Deny
Deleted line 27:
Added line 8:
Added lines 12-27:
AuthUserFile /usr/ann/htpasswd
AuthGroupFile /usr/ann/groups
Satisfy any
Order Allow, Deny
Allow from foo.trust.org
Allow from mydomain.org
Deny from trust.org
Require group staff.admin
<FilesMatch privato.html>
Satisfy any
Deny from all
Deny from env=myprefsite
Require user Sam
Order Allow, Deny
</FilesMatch>
Changed lines 8-9 from:
[@ SetEnvF "www.pref.com" myprefsite
AuthName
to:
SetEnvF "www.pref.com" myprefsite
AuthName "restrcted access"
AuthType Basic
Changed lines 4-9 from:
to:
Changed lines 2-4 from:
to:
Added lines 1-2:
(:title Esercizio su Apache:)
Esercizio su Apache
|