Tag Archives: apache

Apache / mod_auth: use both require group and require user

Consider the following configuration in .htaccess/httpd.conf (or wherever): AuthName “My Super Secret Area” AuthType Basic AuthUserFile /path/to/htpasswd AuthGroupFile /path/to/htgroup Require group bestmates Require user randomguy Where user randomguy does not belong to the group bestmates.

Posted in Solutions | Tagged , | 2 Comments