changed SP host from 'mkc.indexdata.com:9009' to 'sp-mkc.indexdata.com' which points...
[mkws-moved-to-github.git] / tools / apache2 / mkws-live
1 # Configuration for the apache web server
2 # Running on caliban
3
4 <VirtualHost *:80>
5     ServerName mkws.indexdata.com
6
7     ErrorLog /var/log/apache2/mkws-error.log
8     CustomLog /var/log/apache2/mkws-access.log combined
9
10     DocumentRoot /home/indexdata/mkws/tools/htdocs
11     Alias /libjs-pz2/ /home/indexdata/libjs-pz2/
12     Alias /pazpar2/ /home/indexdata/pazpar2/
13
14     RewriteEngine on
15     RewriteLogLevel 1
16     RewriteLog /var/log/apache2/mkws-rewrite.log 
17     RewriteRule /service-proxy-auth /service-proxy/?command=auth&action=login&username=demo&password=demo [P] # [NE,P]
18
19     # The following rule allows the server to accept service-proxy
20     # requests that begin with an escaped "%3F" rather than a literal
21     # "?". This is useful, as requests generated by ProxyPass
22     # elsewhere always have the leading "?" escaped for some reason.
23     RewriteRule /service-proxy/\?(.*) /service-proxy/?$1 [P] # [NE,P]
24
25     Header set Access-Control-Allow-Credentials true
26
27     # For MKC Service Proxy
28     ProxyPass        /service-proxy/ http://mk2-test.indexdata.com/service-proxy/
29     ProxyPassReverse /service-proxy/ http://mk2-test.indexdata.com/service-proxy/
30
31     PerlOptions +Parent
32     PerlSwitches -I/home/indexdata/mkws/tools/mod_perl
33     <Location /service-proxy>
34         PerlOutputFilterHandler MyApache2::SetACAO
35     </Location>
36 </VirtualHost>