Emulate mod_auth_mysql in nginx?
Floren Munteanu
nginx at yqed.com
Fri Mar 13 22:00:03 MSK 2009
Hi,
I was wondering if we could emulate mod_auth_mysql in nginx?
AuthName "Your Protected Area"
AuthType Basic
Auth_MySQL_Username mysqluser
Auth_MySQL_Password mysqlpass
Auth_MySQL_DB database
Auth_MySQL_Password_Table users
Auth_MySQL_Username_Field username
Auth_MySQL_Password_Field passwd
Auth_MySQL_Encrypted_Passwords Off
Auth_MySQL_Non_Persistent On
Auth_MYSQL On
Auth_MySQL_Empty_Passwords Off
require valid-user
INSERT INTO user VALUES ('abc', '123');
+-------------+-----------+
| username | passwd |
+-------------+-----------+
| abc | 123 |
+-------------+-----------+
Thanks for your help.
Floren
More information about the nginx
mailing list