compress text output
[mkws-moved-to-github.git] / tools / apache2 / mkws-dev
1 # Configuration for the apache web server                 -*- apache -*-
2
3 # pazpar2 / service proxy config
4 <VirtualHost *:80>
5     ServerName spclient.example.com
6     ServerAlias spclient-dev.indexdata.com mkws-dev.indexdata.com
7     ServerAdmin webmaster@example.com
8     ErrorLog /var/log/apache2/mkws-dev-error.log
9     CustomLog /var/log/apache2/mkws-dev-access.log combined
10
11     RewriteEngine on
12     RewriteLogLevel 1
13     RewriteLog /var/log/apache2/mkws-dev-rewrite.log 
14
15     DocumentRoot /home/indexdata/mkws/examples/htdocs
16
17     # compress text output
18     <Location />
19         AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
20         SetOutputFilter DEFLATE 
21     </Location> 
22
23     RewriteRule /service-proxy-auth  /service-proxy/?command=auth&action=login&username=guest&password=guest [P] # [NE,P]
24
25     ProxyPass        /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
26     ProxyPassReverse /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
27
28     ProxyPass        /pazpar2/         http://localhost:8004/pazpar2/
29     ProxyPassReverse /pazpar2/         http://localhost:8004/pazpar2/
30
31 </VirtualHost>
32