use new sp-mkws-backend as back-end Service Proxy.
[mkws-moved-to-github.git] / tools / apache2 / sp-mkws-live
1 # Separate hostname for the MKWS instance of the Service Proxy.
2 # This allows us to use a different SP configuration that handles
3 # authentication differently.
4 #
5 # Once this is in universal use, we can get rid of the Service Proxy
6 # stuff in the configuration for mkws.indexdata.com
7 #
8 <VirtualHost *:80>
9     ServerName sp-mkws.indexdata.com
10
11     ErrorLog /var/log/apache2/sp-mkws-error.log
12     CustomLog /var/log/apache2/sp-mkws-access.log combined
13
14     DocumentRoot /home/indexdata/mkws/tools/sp-htdocs
15
16     # No rewriting on this server: use the true URL.
17     # (The security value of rewrite is when the application site does it.)
18
19     Header set Access-Control-Allow-Credentials true
20
21     ProxyPreserveHost On
22     ProxyPass        /service-proxy/ http://sp-mkws-backend.indexdata.com:8080/service-proxy/
23     ProxyPassReverse /service-proxy/ http://sp-mkws-backend.indexdata.com:8080/service-proxy/
24
25     PerlOptions +Parent
26     PerlSwitches -I/home/indexdata/mkws/tools/mod_perl
27     <Location /service-proxy>
28         PerlOutputFilterHandler MyApache2::SetACAO
29     </Location>
30 </VirtualHost>