change template language to standard apache
[mkws-moved-to-github.git] / tools / apache2 / jasmine-dev.template
1 # Configuration for the apache web server                 -*- apache -*-
2
3 User ${APACHE_RUN_USER}
4 Group ${APACHE_RUN_GROUP}
5 PidFile ${APACHE_PID_FILE}
6
7 # pazpar2 / service proxy config
8 <VirtualHost *:4040>
9     ServerName localhost
10     ServerAlias mkws-dev a.mkws.indexdata.com a.mkws-dev.indexdata.com mkws-dev.indexdata.com 127.0.0.1
11
12     ServerAdmin webmaster@indexdata.com
13     ErrorLog ${APACHE_LOG_DIR}/mkws-dev-error.log
14     CustomLog ${APACHE_LOG_DIR}/mkws-dev-access.log combined
15
16     RewriteEngine on
17     RewriteLogLevel 1
18     RewriteLog ${APACHE_LOG_DIR}/mkws-dev-rewrite.log 
19
20     DocumentRoot ${MKWS_ROOT}/examples/htdocs
21     Alias /tools/htdocs ${MKWS_ROOT}/tools/htdocs
22
23     # CORS setting
24     Header set Access-Control-Allow-Credentials true
25     Header set Access-Control-Allow-Origin "*"
26
27     # compress text output
28     <Location />
29         AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
30         SetOutputFilter DEFLATE 
31     </Location> 
32
33     # jasmine test account
34     RewriteRule /service-proxy-testauth  /service-proxy/?command=auth&action=login&username=mkwstest&password=mkwstest [P] # [NE,P]
35
36     # mkws devel account (e.g. memached testing)
37     RewriteRule /service-proxy-auth  /service-proxy/?command=auth&action=login&username=mkwsdev&password=mkwsdev [P] # [NE,P]
38
39     ProxyPass        /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
40     ProxyPassReverse /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
41
42     ProxyPass        /pazpar2/         http://localhost:8004/pazpar2/
43     ProxyPassReverse /pazpar2/         http://localhost:8004/pazpar2/
44
45 </VirtualHost>
46