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
17 Alias /src /home/indexdata/mkws-test/src
18 Alias /test /home/indexdata/mkws-test/test
19 Alias /jasmine /home/indexdata/mkws-test/examples/jasmine
21 Alias /demos/src /home/indexdata/mkws-test/src
22 Alias /demos/tools/htdocs /home/indexdata/mkws-test/tools/htdocs
23 Alias /demos /home/indexdata/demos
26 Header set Access-Control-Allow-Credentials true
27 Header set Access-Control-Allow-Origin "*"
29 # compress text output
31 AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
32 SetOutputFilter DEFLATE
35 # standard MKWS account
36 RewriteRule /service-proxy-auth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&username=mkws&password=mkws [P]
38 # jasmine test account
39 RewriteRule /service-proxy-testauth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&username=mkwsdev&password=mkwsdev [P]
40 RewriteRule /service-proxy-kohaauth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&username=kohademo&password=kohademo [P]
41 #RewriteRule /service-proxy-kohaauth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&username=mkwsdev&password=mkwsdev [P]
43 ProxyPass /service-proxy/ http://sp-mkws02.indexdata.com/service-proxy/
44 ProxyPassReverse /service-proxy/ http://sp-mkws02.indexdata.com/service-proxy/
45 #ProxyPass /service-proxy/ http://sp-mkc-sansa.indexdata.com:8080/service-proxy/
46 #ProxyPassReverse /service-proxy/ http://sp-mkc-sansa.indexdata.com:8080/service-proxy/
47 #ProxyPass /service-proxy/ http://sp-mkc-arya.indexdata.com:8080/service-proxy/
48 #ProxyPassReverse /service-proxy/ http://sp-mkc-arya.indexdata.com:8080/service-proxy/
49 #ProxyPass /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
50 #ProxyPassReverse /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
52 ProxyPass /pazpar2/ http://localhost:8004/pazpar2/
53 ProxyPassReverse /pazpar2/ http://localhost:8004/pazpar2/