Fix live-site config for rewired directories.
[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
13     RewriteEngine on
14     RewriteLogLevel 1
15     RewriteLog /var/log/apache2/mkws-rewrite.log 
16     RewriteRule /service-proxy-auth /service-proxy/?command=auth&action=login&username=demo&password=demo [P] # [NE,P]
17
18     Header set Access-Control-Allow-Credentials true
19
20     # For MKC Service Proxy
21     ProxyPass        /service-proxy/ http://mk2-test.indexdata.com/service-proxy/
22     ProxyPassReverse /service-proxy/ http://mk2-test.indexdata.com/service-proxy/
23
24     PerlOptions +Parent
25     PerlSwitches -I/home/indexdata/mkws/tools/mod_perl
26     <Location /service-proxy>
27         PerlOutputFilterHandler MyApache2::SetACAO
28     </Location>
29 </VirtualHost>