This directory contains a patched version of mod_auth_pgsql with support for using subdomain name in lookup. This subversion only contains the single .c file that makes up mod_auth_pgsql (if you want any more of the files such as README's, Makefile etc get the tarball) 1. Get apache2 libraries: apt-get install apache2-dev (WARNING: this is a dummy package and actually installs apache2-threaded-dev. You might want apache2-prefork-dev if you are using php4 - likely if on gforge as you use php4. This didn't seem to cause problems however). 2. get postgresql sources: apt-get install postgresql-dev 3. then run apxs2 (installed by libapache instead of apxs) (from the INSTALL with minor modifications): apxs2 -i -a -c -I ${PGSQL_INCLUDE} -L ${PGSQL_LIBS} -lpq mod_auth_pgsql.c on debian found include at /usr/include/postgresql and libs at /usr/lib/postgresql/lib 4. go and correct apache2 config (install will automatically add install command to httpd.conf which you won't need if you already have load command in mods-available)