Merge branch 'master' into templateallthemarkup
[mkws-moved-to-github.git] / tools / apache2 / mkws-mike-mac
1 # Configuration for the apache web server
2 # Running on Mike's local development box
3
4 <VirtualHost *:80>
5     ServerName x.mkws.indexdata.com
6     ErrorLog /opt/local/apache2/logs/mkws-error.log
7     CustomLog /opt/local/apache2/logs/mkws-access.log combined
8
9     DocumentRoot /usr/local/src/git/mkws/tools/htdocs
10     Alias /libjs-pz2/ /usr/local/src/git/libjs-pz2/
11     Alias /pazpar2/ /usr/local/src/git/pazpar2/
12
13     RewriteEngine on
14     RewriteLogLevel 1
15     RewriteLog /opt/local/apache2/logs/spclient-rewrite.log 
16     RewriteRule /service-proxy-auth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&username=guest&password=guest [P] # [NE,P]
17
18     # For MKC Service Proxy
19     ProxyPass        /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
20     ProxyPassReverse /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
21
22     # Needed on Mac, which locks Apache down hard by default.
23     <Directory />
24         Allow from all
25     </Directory>
26 </VirtualHost>
27
28 <VirtualHost *:80>
29     ServerName x.example.indexdata.com
30     ErrorLog /opt/local/apache2/logs/example-error.log
31     CustomLog /opt/local/apache2/logs/example-access.log combined
32
33     DocumentRoot /usr/local/src/git/mkws/examples/htdocs
34     Alias /tools/htdocs/ /usr/local/src/git/mkws/tools/htdocs/
35     Alias /src/ /usr/local/src/git/mkws/src/
36     Alias /jasmine/ /usr/local/src/git/mkws/examples/jasmine/
37     Alias /test/ /usr/local/src/git/mkws/test/
38
39     # Needed on Mac, which locks Apache down hard by default.
40     <Directory />
41         Allow from all
42     </Directory>
43 </VirtualHost>