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(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=check,login&username=mkws&password=mkws [P]
20 RewriteRule /service-proxy-testauth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=check,login&username=mkwstest&password=mkwstest [P]
21 RewriteRule /service-proxy-credoauth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=check,login&username=credo&password=emu [P]
22 RewriteRule /service-proxy-kohaauth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=check,login&username=kohademo&password=kohademo [P]
23 RewriteRule /service-proxy-orexauth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=check,login&username=orex&password=orexmkc [P]
25 # The following rule allows the server to accept service-proxy
26 # requests that begin with an escaped "%3F" rather than a literal
27 # "?". This is useful, as requests generated by ProxyPass
28 # elsewhere always have the leading "?" escaped for some reason.
29 RewriteRule /service-proxy/\?(.*) /service-proxy/?$1 [P] # [NE,P]
31 Header set Access-Control-Allow-Credentials true
33 # For MKC Service Proxy
34 ProxyPass /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
35 ProxyPassReverse /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
36 # Or use: sp-mkc-sansa.indexdata.com:8080 or sp-mkc-arya.indexdata.com:8080
39 PerlSwitches -I/home/indexdata/mkws/tools/mod_perl
40 <Location /service-proxy>
41 PerlOutputFilterHandler MyApache2::SetACAO
45 # Separate hostname for the MKWS instance of the Service Proxy.
46 # This allows us to use a different SP configuration that handles
47 # authentication differently.
49 # Once this is in universal use, we can get rid of the Service Proxy
50 # stuff in the configuration for mkws.indexdata.com
53 ServerName sp-mkws.indexdata.com
55 ErrorLog /var/log/apache2/sp-mkws-error.log
56 CustomLog /var/log/apache2/sp-mkws-access.log combined
58 DocumentRoot /home/indexdata/mkws/tools/sp-htdocs
60 # No rewriting on this server: use the true URL.
61 # (The security value of rewrite is when the application site does it.)
63 Header set Access-Control-Allow-Credentials true
65 ProxyPass /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
66 ProxyPassReverse /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
67 # Or use: sp-mkc-sansa.indexdata.com:8080 or sp-mkc-arya.indexdata.com:8080
70 PerlSwitches -I/home/indexdata/mkws/tools/mod_perl
71 <Location /service-proxy>
72 PerlOutputFilterHandler MyApache2::SetACAO