crash4ever
Programmer
Hi,
I'm new to Apache 2 (RedHat Linux 9) and needs help on this matter. We need to set up specific password protected directories for certain users. For example, all users will see the logon page on
Then based on their user name and password, they will be redirected to their own directories. So for example we have 10 directories; A could only see directory A, etc.
I'm trying to use AuthMySql method but so far I don't know how to redirect user to their own directory. Is there any other better method to accomplish this instead using MySql Auth method?
My auth_mysql.conf (/etc/httpd/conf.d) code:
LoadModule mysql_auth_module modules/mod_auth_mysql.so
<Directory /var/ AuthName "MySQL authenticated zone"
AuthType Basic
AuthMySQLUser user
AuthMySQLPassword password
AuthMySQLDB auth
AuthMySQLUserTable users
AuthMySQLNameField user_name
AuthMySQLPasswordField user_passwd
require valid-user
</Directory>
Thanks,
Vicky
I'm new to Apache 2 (RedHat Linux 9) and needs help on this matter. We need to set up specific password protected directories for certain users. For example, all users will see the logon page on
Then based on their user name and password, they will be redirected to their own directories. So for example we have 10 directories; A could only see directory A, etc.
I'm trying to use AuthMySql method but so far I don't know how to redirect user to their own directory. Is there any other better method to accomplish this instead using MySql Auth method?
My auth_mysql.conf (/etc/httpd/conf.d) code:
LoadModule mysql_auth_module modules/mod_auth_mysql.so
<Directory /var/ AuthName "MySQL authenticated zone"
AuthType Basic
AuthMySQLUser user
AuthMySQLPassword password
AuthMySQLDB auth
AuthMySQLUserTable users
AuthMySQLNameField user_name
AuthMySQLPasswordField user_passwd
require valid-user
</Directory>
Thanks,
Vicky