Forum Moderators: phranque
Root
- Dev
- Folder A
- Folder 1A
- Folder B
- Folder C AuthType Basic
AuthName "Dev Password"
AuthUserFile /dev/.htpasswd
SetEnvIf Request_URI "^/folder-a(/.*)?$" allow
SetEnvIf Request_URI "^/folder-a/folder-1a(/.*)?$" allow
<RequireAny>
Require env allow
Require user global
</RequireAny> AuthType Basic
AuthName "Folder A Password"
AuthUserFile /dev/.htpasswd
Require user global john SetEnvIf Request_URI "^/folder-a(/.*)?$" allow
SetEnvIf Request_URI "^/folder-a/folder-1a(/.*)?$" allow
re-prompt when trying to access any sub-folders of Folder AIs there more than one? Why, in that case, does the earlier rule specifically name /folder-1a/ ?
this becomes a bigger issue when the sub-folder is a website and it sends a new prompt for every file/asset on pageload