Intendi usando autenticazione HTTP e database?
http://httpd.apache.org/docs/2.4/howto/auth.html
http://httpd.apache.org/docs/2.4/howto/auth.html#dbmdbd
http://httpd.apache.org/docs/2.4/mod/mod_authn_dbd.html
http://httpd.apache.org/docs/2.4/mod/mod_authn_dbm.html