Basic Auth - MySQL/PgSQL Backend.

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


> 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).


Best regards,
Piotr Sikora < piotr.sikora at >

More information about the nginx mailing list