2017-10-12 5 views

Répondre

2

Vous pouvez l'utiliser conjointement avec mod_setenv directive comme:

# set variable NO_PASS if URI starts with /test/page/ 
SetEnvIfNoCase Request_URI "^/test/page/" NO_PASS 

# Allow NO_PASS but ask for password otherwise 
AuthType Basic 
AuthName "My Protected Area" 
AuthUserFile /Full/Path/To/passwords 
Require valid-user 
Satisfy any 
Order  deny,allow 
Deny from all 
Allow from env=NO_PASS