Project

General

Profile

Actions

Feature #2110

closed

implement .htaccess files to different directories and different users

Added by SSegura over 15 years ago. Updated over 15 years ago.

Status:
Invalid
Priority:
Normal
Category:
mod_auth
Target version:
-
ASK QUESTIONS IN Forums:

Description

It's often share common user directories, and directories for a number of users, and a single common password file.

Could use a file. htaccess in each directory to protect, specifying a file in each directory .htaccess with the restrictions to that directory, to only allow users to access required and have been authenticated.

.htacces (for the directory /project_1)
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /path/to/secure/file_htpasswords
Require user user_1
Require user user_2
Require user user_3

.htacces (for the directory /project_2)
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /path/to/secure/file_htpasswords
Require user user_1
Require user user_3
Require user user_15

.htacces (for the directory /project_private)
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /path/to/secure/file_htpasswords
Require user user_private

Please accept my suggestion.
Sebastián Segura


Related issues 2 (0 open2 closed)

Is duplicate of Bug #2109: implement .htaccess files to different directories and different usersInvalid2009-11-28Actions
Is duplicate of Bug #308: .htaccess rewrite rulesInvalidActions
Actions #1

Updated by icy over 15 years ago

  • Status changed from New to Invalid
Actions #2

Updated by icy over 15 years ago

To anyone finding this ticket via google: Please see the FAQ

Actions

Also available in: Atom