Add invocation of yaz-ztest
[mkws-moved-to-github.git] / tools / apache2 / mkws-heikki
1 # Apache config for Heikki's workstation (tapas)
2 # May also work on Heikki's home machine (corelli) and laptop (tsatsiki)
3 # Needs the host name to be defined in /etc/hosts
4 # cd /etc/apache2/sites-available
5 # sudo ln -s /home/heikki/proj/mkws/tools/apache2/mkws-heikki .
6 # sudo a2ensite mkws-heikki
7 # sudo service apache2 reload
8 # (make sure the path from /home to .../htdocs is world-readable!)
9
10
11 <VirtualHost *:80>
12   ServerName mkws-heikki.localdomain
13   ServerAlias mkws mkws-heikki
14
15   RewriteEngine on
16   RewriteLogLevel 1
17   RewriteLog /var/log/apache2/mkws-dev-rewrite.log
18
19   DocumentRoot /home/heikki/proj/mkws/examples/htdocs
20   Alias /tools/htdocs /home/heikki/proj/mkws/tools/htdocs
21   Alias /src /home/heikki/proj/mkws/src
22   Alias /test /home/heikki/proj/mkws/test
23   Alias /jasmine /home/heikki/proj/mkws/examples/jasmine
24
25   # allow cors
26   Header set Access-Control-Allow-Credentials true
27   Header set Access-Control-Allow-Origin "*"
28
29   # compress text output
30   <Location />
31     AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
32     SetOutputFilter DEFLATE
33   </Location>
34
35   RewriteRule /service-proxy-auth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&username=demo&password=demo [P] # [NE,P]
36
37   # For MKC Service Proxy
38     ProxyPass        /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
39     ProxyPassReverse /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
40
41     ProxyPass        /pazpar2/         http://localhost:8004/pazpar2/
42     ProxyPassReverse /pazpar2/         http://localhost:8004/pazpar2/
43
44 #  ProxyPass        /service-proxy/ http://mk2-test.indexdata.com/service-proxy/
45 #  ProxyPassReverse /service-proxy/ http://mk2-test.indexdata.com/service-proxy/
46
47   <Directory />
48     AllowOverride None
49     Options FollowSymLinks
50     Order allow,deny
51     Allow from all
52   </Directory>
53
54 </VirtualHost>
55