1 # Configuration for the apache web server -*- apache -*-
3 #####################################################################
4 # global apache 2.2 config
6 User ${APACHE_RUN_USER}
7 Group ${APACHE_RUN_GROUP}
8 PidFile ${APACHE_PID_FILE}
9 LockFile ${APACHE_LOCK_FILE}
12 ServerRoot ${APACHE_SERVER_ROOT}
13 NameVirtualHost *:${APACHE_PORT}
16 Include ${APACHE_MODULES}
18 <IfModule log_config_module>
19 # %O only works if mod_logio is enabled, which it isn't on Mike's MacBook
20 # LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
21 LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s \"%{Referer}i\" \"%{User-Agent}i\"" combined
24 # pazpar2 / service proxy config
25 <VirtualHost *:${APACHE_PORT}>
27 ServerAlias mkws-dev a.mkws.indexdata.com a.mkws-dev.indexdata.com mkws-dev.indexdata.com 127.0.0.1
29 ServerAdmin webmaster@indexdata.com
30 ErrorLog ${APACHE_LOG_DIR}/mkws-jasmine-${APACHE_PORT}-error.log
31 CustomLog ${APACHE_LOG_DIR}/mkws-jasmine-${APACHE_PORT}-access.log combined
35 RewriteLog ${APACHE_LOG_DIR}/mkws-jasmine-rewrite-${APACHE_PORT}.log
37 DocumentRoot ${MKWS_ROOT}/examples/htdocs
38 Alias /tools/htdocs ${MKWS_ROOT}/tools/htdocs
39 Alias /src ${MKWS_ROOT}/src
40 Alias /test ${MKWS_ROOT}/test
41 Alias /jasmine ${MKWS_ROOT}/examples/jasmine
44 Header set Access-Control-Allow-Credentials true
45 Header set Access-Control-Allow-Origin "*"
47 # compress text output
49 AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
50 SetOutputFilter DEFLATE
53 # jasmine test account
54 RewriteRule /service-proxy-testauth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&username=mkwstest&password=mkwstest [P]
56 # mkws devel account (e.g. memached testing)
57 RewriteRule /service-proxy-auth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&username=mkwsdev&password=mkwsdev [P]
59 ProxyPass /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
60 ProxyPassReverse /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
62 ProxyPass /pazpar2/ http://localhost:8004/pazpar2/
63 ProxyPassReverse /pazpar2/ http://localhost:8004/pazpar2/