This page is about Nginx, my http server of choice for almost everything lately.

Here you will find a module to do HTTP Basic Authentication agains PAM instead of using an htpasswd file (see ngx_http_auth_basic_module for that).

I wrote it because I wanted to limit the access to some sites using LDAP or PostreSQL as the authorization sources; after looking at the excelent Emiller's Guide To Nginx Module Development and at the ngx_http_auth_basic_module source I thought it was not so difficult an decided to write the module.

As PAM already has support almost any kind of authorization mechanism I could think of (i.e., there is no need to implement support for the apache's valid users directive on the nginx module, as I can use the module to get the same functionality) I decided that it was the easiest and fastest way to go.


I've moved the canonical site for this module to:

But I plan to keep local copies of released versions on this page also, the latest module version here is 1.4, published on 2015-02-04.

From this page you can: