Basic Auth - MySQL/PgSQL Backend.

Piotr Sikora piotr.sikora at frickle.com
Mon May 23 20:49:37 MSD 2011


Hi,

> I was wondering what options are available for using BasicAuth using 
> Either MySQL or PostGres backend to store users.

You can do this with ngx_http_auth_request [1] with either ngx_drizzle [2] 
(for Drizzle/MariaDB/MySQL/Percona) or ngx_postgres [3] (for PostgreSQL).

Working example for ngx_postgres is available in its README (Sample 
configuration #4).

[1] http://mdounin.ru/hg/ngx_http_auth_request_module/
[2] https://github.com/chaoslawful/drizzle-nginx-module
[3] https://github.com/FRiCKLE/ngx_postgres

Best regards,
Piotr Sikora < piotr.sikora at frickle.com >




More information about the nginx mailing list