changed SP host from 'mkc.indexdata.com:9009' to 'sp-mkc.indexdata.com' which points...
[mkws-moved-to-github.git] / tools / apache2 / mkws-test
1 # Configuration for the apache web server                 -*- apache -*-
2
3 # pazpar2 / service proxy config
4 <VirtualHost *:80>
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
10
11     RewriteEngine on
12     RewriteLogLevel 1
13     RewriteLog /var/log/apache2/mkws-test-rewrite.log 
14
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
20
21
22     # CORS setting
23     Header set Access-Control-Allow-Credentials true
24     Header set Access-Control-Allow-Origin "*"
25
26     # compress text output
27     <Location />
28         AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
29         SetOutputFilter DEFLATE 
30     </Location> 
31
32     # standard MKWS account
33     RewriteRule /service-proxy-auth  /service-proxy/?command=auth&action=login&username=mkws&password=mkws [P] # [NE,P]
34
35     # jasmine test account
36     RewriteRule /service-proxy-testauth  /service-proxy/?command=auth&action=login&username=mkwstest&password=mkwstest [P] # [NE,P]
37
38     ProxyPass        /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
39     ProxyPassReverse /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
40
41     ProxyPass        /pazpar2/         http://localhost:8004/pazpar2/
42     ProxyPassReverse /pazpar2/         http://localhost:8004/pazpar2/
43
44 </VirtualHost>
45