LoadModule authnz_external_module modules/mod_authnz_external.so # provided by www-apache/pwauth #AddExternalAuth pwauth /etc/apache2/modules/pwauth #SetExternalAuthMethod pwauth pipe # For external group check (provided by www-apache/pwauth) #AddExternalGroup unixgroup modules/unixgroup #SetExternalGroupMethod unixgroup environment # Put an .htaccess file in whatever directory you want to protect. # A typical .htaccess file would look like: # # AuthName Your-Site-Name # AuthType Basic # AuthExternal pwauth # Require valid-user # or # Require user1 # # GroupExternal unixgroup # AuthGroupFile /dev/null # Require group ... # # Alternately, you can put a block with the same directives # in your httpd.conf file. # # Note1: Using group method, don't forget to add users in the authorized group # group files # somegroup:x:500:user1,user2,user3 # vim: ts=4 filetype=apache