libapache-mod-auth-pipe for Debian
To configure a directory to be readable only by valid users of the system, the following could be added to httpd.conf:
<Location /path/to/directory>
AuthName whateveryoulike
AuthPipe on
AuthType Basic
require valid-user
</Location>
The "AuthPipe on" directive tells the authentication handler to take effect. If AuthPipe is set to off, mod_auth_pipe will decline to authenticate the user.
mod_auth_pipe also supports the "require user" and "require group" directives. "require user" restricts access to the named (space separated) users. "require group" restricts access to users who are a member of the listed groups.
