Alias new libjs-pz2 instead of old Pazpar2 version.
[mkws-moved-to-github.git] / etc / apache2 / spclient-mike
1 # Configuration for the apache web server                 -*- apache -*-
2 # Running on Mike's local development box
3 # This file is a variant of "spdemo"
4
5 # pazpar2 / service proxy config
6 <VirtualHost *:80>
7     ServerName x.spclient.indexdata.com
8     ErrorLog /var/log/apache2/spclient-error.log
9     CustomLog /var/log/apache2/spclient-access.log combined
10
11     RewriteEngine on
12     RewriteLogLevel 1
13     RewriteLog /var/log/apache2/spclient-rewrite.log 
14
15     DocumentRoot /usr/local/src/git/mkws/experiments/spclient/
16     Alias /libjs-pz2/ /usr/local/src/git/libjs-pz2/
17     Alias /indexdata_logo.png /usr/local/src/git/pazpar2/www/jsdemo/indexdata_logo.png
18     Alias /styles.css /usr/local/src/git/pazpar2/www/jsdemo/styles.css
19
20     RewriteRule /service-proxy-auth  /service-proxy/?command=auth&action=login&username=guest&password=guest [P] # [NE,P]
21
22     # For MKC Service Proxy
23     ProxyPass        /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
24     ProxyPassReverse /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
25
26     # For local Service Proxy running as mvn jetty:run
27     #ProxyPass        /service-proxy/ http://localhost:8585/service-proxy/
28     #ProxyPassReverse /service-proxy/ http://localhost:8585/service-proxy/
29 </VirtualHost>