test-httpd-2.4.conf 1.13 KB
Newer Older
ale's avatar
ale committed
1
2
LoadModule mpm_worker_module /usr/lib/apache2/modules/mod_mpm_worker.so

3
LoadModule auth_basic_module ${MODULEDIR}/mod_auth_basic.so
ale's avatar
ale committed
4
5
LoadModule authn_core_module ${MODULEDIR}/mod_authn_core.so
LoadModule authz_core_module ${MODULEDIR}/mod_authz_core.so
6
7
LoadModule authz_user_module ${MODULEDIR}/mod_authz_user.so

ale's avatar
ale committed
8
9
LoadModule sso_module ${TESTROOT}/../.libs/mod_sso.so
LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so
10

ale's avatar
ale committed
11
12
13
14
15
16
17
18
19
Listen 127.0.0.1:33000
ServerName test
PidFile ${TESTROOT}/test-httpd.pid
ErrorLog /dev/fd/2
LogLevel debug

SSOLoginServer login.example.com
SSODomain example.com
SSOPublicKeyFile ${TESTROOT}/public.key
ale's avatar
ale committed
20
SSOGroups group1,group2,group3
ale's avatar
ale committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

DocumentRoot ${TESTROOT}/htdocs
<Directory "${TESTROOT}/htdocs">
	AuthType SSO
	AuthName test
	SSOService service.example.com/
	require valid-user
</Directory>

<Location "/other-service">
	SSOService /other-service/
</Location>

<Directory "${TESTROOT}/htdocs/protected-group">
	require group group1
</Directory>

<Directory "${TESTROOT}/htdocs/protected-user">
	require user testuser
</Directory>

<Directory "${TESTROOT}/htdocs/cgi">
	Options ExecCGI
	SetHandler cgi-script
</Directory>