Move tools Apache2 configuration into tools area
[mkws-moved-to-github.git] / tools / apache2 / mkws-mike
1 # Configuration for the apache web server
2 # Running on Mike's local development box
3
4 <VirtualHost *:80>
5     ServerName x.spclient.indexdata.com
6     ErrorLog /var/log/apache2/spclient-error.log
7     CustomLog /var/log/apache2/spclient-access.log combined
8
9     DocumentRoot /usr/local/src/git/mkws/experiments/spclient/
10     Alias /libjs-pz2/ /usr/local/src/git/libjs-pz2/
11
12     RewriteEngine on
13     RewriteLogLevel 1
14     RewriteLog /var/log/apache2/spclient-rewrite.log 
15     RewriteRule /service-proxy-auth /service-proxy/?command=auth&action=login&username=guest&password=guest [P] # [NE,P]
16
17     # For MKC Service Proxy
18     ProxyPass        /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
19     ProxyPassReverse /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
20
21     # For local Service Proxy running as mvn jetty:run
22     #ProxyPass        /service-proxy/ http://localhost:8585/service-proxy/
23     #ProxyPassReverse /service-proxy/ http://localhost:8585/service-proxy/
24
25     # Needed on Mac, which locks Apache down hard by default.
26     <Directory />
27         Allow from all
28     </Directory>
29 </VirtualHost>