-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprfdb_httpd.conf
52 lines (52 loc) · 1.64 KB
/
prfdb_httpd.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
## This requires that PRFDB_HOME, PRFDB_IP, and PRFDB_NAME be defined in
## either /etc/sysconfig/httpd, /etc/init.d/httpd, or /etc/apache2/passenv
## depending on your httpd
## Also enable deflate, on debian based systems this is done by symlinking it from /etc/apache2/mods-available to mods-enabled
## Finally make sure to create the directories /tmp/sessions/data and /tmp/sessions/locks and make them writable by the apache user
PerlPassEnv PRFDB_HOME
NameVirtualHost ${PRFDB_IP}:80
<VirtualHost ${PRFDB_NAME}:80>
ServerName ${PRFDB_NAME}
DocumentRoot ${PRFDB_HOME}
DirectoryIndex index.html
DeflateCompressionLevel 4
DeflateMemLevel 9
DeflateWindowSize 15
AddType image/svg+xml .svg
AddType image/svg+xml .svgz
PerlRequire ${PRFDB_HOME}/handler.pl
SetOutputFilter DEFLATE
<Location /images>
SetHandler default
</Location>
<Directory ${PRFDB_HOME}>
Options +Indexes
</Directory>
<Directory ${PRFDB_HOME}/*/images>
SetOutputFilter DEFLATE
SetHandler default-handler
Options -ExecCGI -Indexes
</Directory>
<Directory ${PRFDB_HOME}/*/html>
SetOutputFilter DEFLATE
SetHandler default-handler
Options -ExecCGI -Indexes
</Directory>
Alias / "${PRFDB_HOME}/"
<Directory ${PRFDB_HOME}>
DirectoryIndex index.html
</Directory>
<LocationMatch "(\.html|\.txt|\.pl|\.js)$">
SetOutputFilter DEFLATE
SetHandler perl-script
PerlHandler PRFdb::Handler
</LocationMatch>
<LocationMatch "(\.svg|\.png)$">
SetOutputFilter DEFLATE
SetHandler default-handler
</LocationMatch>
<LocationMatch "(\.m(html|txt|pl)|dhandler|autohandler)$">
SetHandler perl-script
PerlInitHandler Apache::Constants::NOT_FOUND
</LocationMatch>
</VirtualHost>