Nginx

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 pam_listfile.so module to get the same functionality) I decided that it was the easiest and fastest way to go.

From this page you can: