1 # Configuration for the apache web server -*- apache -*-
3 # pazpar2 / service proxy config
5 ServerName mkws-test.indexdata.com
6 ServerAlias mkws-test spclient-dev.indexdata.com
7 ServerAdmin webmaster@indexdata.com
8 ErrorLog /var/log/apache2/mkws-test-error.log
9 CustomLog /var/log/apache2/mkws-test-access.log combined
13 RewriteLog /var/log/apache2/mkws-test-rewrite.log
15 DocumentRoot /home/indexdata/mkws-test/examples/htdocs
16 Alias /tools/htdocs /home/indexdata/mkws-test/tools/htdocs
19 Header set Access-Control-Allow-Credentials true
20 Header set Access-Control-Allow-Origin "*"
22 # compress text output
24 AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
25 SetOutputFilter DEFLATE
28 # standard MKWS account
29 RewriteRule /service-proxy-auth /service-proxy/?command=auth&action=login&username=mkws&password=mkws [P] # [NE,P]
31 # jasmine test account
32 RewriteRule /service-proxy-testauth /service-proxy/?command=auth&action=login&username=mkwstest&password=mkwstest [P] # [NE,P]
34 ProxyPass /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
35 ProxyPassReverse /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
37 ProxyPass /pazpar2/ http://localhost:8004/pazpar2/
38 ProxyPassReverse /pazpar2/ http://localhost:8004/pazpar2/