1 # Configuration for the apache web server -*- apache -*-
3 #####################################################################
4 # global apache2 config
6 User ${APACHE_RUN_USER}
7 Group ${APACHE_RUN_GROUP}
8 PidFile ${APACHE_PID_FILE}
10 ServerRoot ${APACHE_SERVER_ROOT}
11 NameVirtualHost *:${APACHE_PORT}
14 LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
16 Include /etc/apache2/mods-enabled/alias.load
17 Include /etc/apache2/mods-enabled/authz*.load
18 Include /etc/apache2/mods-enabled/proxy*.load
19 Include /etc/apache2/mods-enabled/rewrite.load
20 Include /etc/apache2/mods-enabled/headers.load
21 Include /etc/apache2/mods-enabled/mime.load
22 Include /etc/apache2/mods-enabled/deflate.load
24 Include /etc/apache2/mods-enabled/alias*.conf
25 Include /etc/apache2/mods-enabled/authz*.conf
26 Include /etc/apache2/mods-enabled/proxy*.conf
27 Include /etc/apache2/mods-enabled/mime.conf
28 Include /etc/apache2/mods-enabled/deflate.conf
30 # pazpar2 / service proxy config
31 <VirtualHost *:${APACHE_PORT}>
33 ServerAlias mkws-dev a.mkws.indexdata.com a.mkws-dev.indexdata.com mkws-dev.indexdata.com 127.0.0.1
35 ServerAdmin webmaster@indexdata.com
36 ErrorLog ${APACHE_LOG_DIR}/mkws-jasmine-error.log
37 CustomLog ${APACHE_LOG_DIR}/mkws-jasmine-access.log combined
41 RewriteLog ${APACHE_LOG_DIR}/mkws-jasmine-rewrite.log
43 DocumentRoot ${MKWS_ROOT}/examples/htdocs
44 Alias /tools/htdocs ${MKWS_ROOT}/tools/htdocs
45 Alias /src ${MKWS_ROOT}/src
46 Alias /test ${MKWS_ROOT}/test
47 Alias /jasmine ${MKWS_ROOT}/examples/jasmine
50 Header set Access-Control-Allow-Credentials true
51 Header set Access-Control-Allow-Origin "*"
53 # compress text output
55 AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
56 SetOutputFilter DEFLATE
59 # jasmine test account
60 RewriteRule /service-proxy-testauth /service-proxy/?command=auth&action=login&username=mkwstest&password=mkwstest [P] # [NE,P]
62 # mkws devel account (e.g. memached testing)
63 RewriteRule /service-proxy-auth /service-proxy/?command=auth&action=login&username=mkwsdev&password=mkwsdev [P] # [NE,P]
65 ProxyPass /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
66 ProxyPassReverse /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
68 ProxyPass /pazpar2/ http://localhost:8004/pazpar2/
69 ProxyPassReverse /pazpar2/ http://localhost:8004/pazpar2/