summaryrefslogtreecommitdiffstats
path: root/tests/auth.conf
blob: 25975c53aca876d67f679d0046b70878207a14bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
LoadModule authnz_pam_module modules/mod_authnz_pam.so

ScriptAlias /authz /var/www/cgi-bin/auth.cgi
<Location /authz>
	AuthType Basic
	AuthName "private area"
	AuthBasicProvider file
	AuthUserFile /etc/htpasswd
	Require pam-account web
</Location>

ScriptAlias /authn /var/www/cgi-bin/auth.cgi
<LocationMatch ^/authn>
	AuthType Basic
	AuthName "private area"
	AuthBasicProvider PAM
	AuthPAMService web
	Require valid-user
</LocationMatch>