1 # Configuration for the apache web server
5 ServerName mkws.indexdata.com
7 ErrorLog /var/log/apache2/mkws-error.log
8 CustomLog /var/log/apache2/mkws-access.log combined
10 DocumentRoot /home/indexdata/mkws/tools/htdocs
11 Alias /libjs-pz2/ /home/indexdata/libjs-pz2/
12 Alias /pazpar2/ /home/indexdata/pazpar2/
16 RewriteLog /var/log/apache2/mkws-rewrite.log
18 # Credential-hiding rewrite rules for standard MKWS account, testing account and various application accounts
19 RewriteRule /service-proxy-auth /service-proxy/?command=auth&action=login&username=mkws&password=mkws [P] # [NE,P]
20 RewriteRule /service-proxy-testauth /service-proxy/?command=auth&action=login&username=mkwstest&password=mkwstest [P] # [NE,P]
21 RewriteRule /service-proxy-credoauth /service-proxy/?command=auth&action=login&username=credo&password=emu [P] # [NE,P]
23 # The following rule allows the server to accept service-proxy
24 # requests that begin with an escaped "%3F" rather than a literal
25 # "?". This is useful, as requests generated by ProxyPass
26 # elsewhere always have the leading "?" escaped for some reason.
27 RewriteRule /service-proxy/\?(.*) /service-proxy/?$1 [P] # [NE,P]
29 Header set Access-Control-Allow-Credentials true
31 # For MKC Service Proxy
32 ProxyPass /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
33 ProxyPassReverse /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
36 PerlSwitches -I/home/indexdata/mkws/tools/mod_perl
37 <Location /service-proxy>
38 PerlOutputFilterHandler MyApache2::SetACAO