-
Notifications
You must be signed in to change notification settings - Fork 0
/
00-redcap.conf
57 lines (48 loc) · 1.3 KB
/
00-redcap.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
47
48
49
50
51
52
53
54
55
56
57
# Turns on shibboleth for the webroot
<Location ~ "^/[^/]+">
AuthType shibboleth
ShibRequireSession On
ShibUseHeaders On
<RequireAny>
require valid-user
require ip 127.0.0.1
</RequireAny>
</Location>
<Location ~ "^/[^/]+/(api|api/|api/index.php)">
AuthType shibboleth
ShibRequireSession Off
ShibUseHeaders Off
require shibboleth
</Location>
<Location ~ "^/[^/]+/api/help(|/|/index.php)">
AuthType shibboleth
ShibRequireSession Off
ShibUseHeaders Off
require shibboleth
</Location>
# Allow global access to surveys
<Location ~ "^/[^/]+/surveys/">
Require all granted
</Location>
# Allow access to java script and images
<Location ~ "^/[^/]+/redcap_v[\.\d]*/Resources/">
Require all granted
</Location>
# Allow access to SendIt
<Location ~ "^/[^/]+/redcap_v[\.\d]*/SendIt/download\.php.*">
Require all granted
</Location>
# Allow access to SendIt via the controller
<LocationMatch "^/[^/]+/redcap_v[\.\d]*/index\.php">
<If "%{QUERY_STRING} =~ /.*route=SendItController:download.*/" >
Require all granted
</If>
</LocationMatch>
# Disallow web access to directories that don't need it
<Location ~ "/(temp|edocs|webtools2)/.*">
Require all denied
</Location>
# Allow access to JavaScript and CSS in modules
<Location ~ "^/[^/]+/modules/.*_v.*/.*\.(css|js)(.[0-9]+|)$">
Require all granted
</Location>