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!)
12 ServerName mkws-heikki.localdomain
13 ServerAlias mkws mkws-heikki
17 RewriteLog /var/log/apache2/mkws-dev-rewrite.log
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
26 Header set Access-Control-Allow-Credentials true
27 Header set Access-Control-Allow-Origin "*"
29 # compress text output
31 AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
32 SetOutputFilter DEFLATE
35 RewriteRule /service-proxy-auth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&username=demo&password=demo [P] # [NE,P]
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/
41 ProxyPass /pazpar2/ http://localhost:8004/pazpar2/
42 ProxyPassReverse /pazpar2/ http://localhost:8004/pazpar2/
44 # ProxyPass /service-proxy/ http://mk2-test.indexdata.com/service-proxy/
45 # ProxyPassReverse /service-proxy/ http://mk2-test.indexdata.com/service-proxy/
49 Options FollowSymLinks