1 # Configuration for the apache web server -*- apache -*-
3 User ${APACHE_RUN_USER}
4 Group ${APACHE_RUN_GROUP}
5 PidFile ${APACHE_PID_FILE}
7 # pazpar2 / service proxy config
10 ServerAlias mkws-dev a.mkws.indexdata.com a.mkws-dev.indexdata.com mkws-dev.indexdata.com 127.0.0.1
12 ServerAdmin webmaster@indexdata.com
13 ErrorLog ${APACHE_LOG_DIR}/mkws-dev-error.log
14 CustomLog ${APACHE_LOG_DIR}/mkws-dev-access.log combined
18 RewriteLog ${APACHE_LOG_DIR}/mkws-dev-rewrite.log
20 DocumentRoot ${MKWS_ROOT}/examples/htdocs
21 Alias /tools/htdocs ${MKWS_ROOT}/tools/htdocs
24 Header set Access-Control-Allow-Credentials true
25 Header set Access-Control-Allow-Origin "*"
27 # compress text output
29 AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
30 SetOutputFilter DEFLATE
33 # jasmine test account
34 RewriteRule /service-proxy-testauth /service-proxy/?command=auth&action=login&username=mkwstest&password=mkwstest [P] # [NE,P]
36 # mkws devel account (e.g. memached testing)
37 RewriteRule /service-proxy-auth /service-proxy/?command=auth&action=login&username=mkwsdev&password=mkwsdev [P] # [NE,P]
39 ProxyPass /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
40 ProxyPassReverse /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
42 ProxyPass /pazpar2/ http://localhost:8004/pazpar2/
43 ProxyPassReverse /pazpar2/ http://localhost:8004/pazpar2/