new server alias a.mkws.indexdata.com for regression tests
[mkws-moved-to-github.git] / tools / apache2 / mkws-dev
1 # Configuration for the apache web server                 -*- apache -*-
2
3 # pazpar2 / service proxy config
4 <VirtualHost *:80>
5     ServerName mkws-dev.indexdata.com
6     ServerAlias mkws-dev a.mkws.indexdata.com
7
8     ServerAdmin webmaster@indexdata.com
9     ErrorLog /var/log/apache2/mkws-dev-error.log
10     CustomLog /var/log/apache2/mkws-dev-access.log combined
11
12     RewriteEngine on
13     RewriteLogLevel 1
14     RewriteLog /var/log/apache2/mkws-dev-rewrite.log 
15
16     DocumentRoot /home/indexdata/mkws-dev/examples/htdocs
17     Alias /tools/htdocs /home/indexdata/mkws-dev/tools/htdocs
18
19     # CORS setting
20     Header set Access-Control-Allow-Credentials true
21     Header set Access-Control-Allow-Origin "*"
22
23     # compress text output
24     <Location />
25         AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
26         SetOutputFilter DEFLATE 
27     </Location> 
28
29     RewriteRule /service-proxy-auth  /service-proxy/?command=auth&action=login&username=mkws&password=mkws [P] # [NE,P]
30
31     ProxyPass        /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
32     ProxyPassReverse /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
33
34     ProxyPass        /pazpar2/         http://localhost:8004/pazpar2/
35     ProxyPassReverse /pazpar2/         http://localhost:8004/pazpar2/
36
37 </VirtualHost>
38