epmo
asked on
.htaccess - database authentication
Hello - we have a website with cookies authentication and .htaccess file that protect videos.
The problem we have is that .htaccess cannot read the users from our database to see if they are valid users or not.
we have something like this for the htaccess file to read users from our database with the correct values, please any ideas? Thank you.
AuthGroupFile /dev/null
AuthName RESTRICTED
AuthType Basic
AuthMySQLHost
AuthMySQLDB
AuthMySQLUser
AuthMySQLPassword
AuthMySQLUserTable username
AuthMySQLNameField username
AuthMySQLPasswordField password
AuthMySQLCryptedPasswords Off
AuthMySQLScrambledPassword s Off
AuthMySQLKeepAlive on
<Limit GET POST>
require valid-user
</Limit>
The problem we have is that .htaccess cannot read the users from our database to see if they are valid users or not.
we have something like this for the htaccess file to read users from our database with the correct values, please any ideas? Thank you.
AuthGroupFile /dev/null
AuthName RESTRICTED
AuthType Basic
AuthMySQLHost
AuthMySQLDB
AuthMySQLUser
AuthMySQLPassword
AuthMySQLUserTable username
AuthMySQLNameField username
AuthMySQLPasswordField password
AuthMySQLCryptedPasswords Off
AuthMySQLScrambledPassword
AuthMySQLKeepAlive on
<Limit GET POST>
require valid-user
</Limit>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Note the:
AuthMySQLAuthoritative On
in the link above.
Cheers
JJ
ASKER
Thank you
For a more specific mysql config try:
http://www.linuxhelp.net/guides/htaccessmysql/
Cheers
JJ