1 # This is a barebones Apache virtual host configuration, suitable
2 # for testing out the OpenSRF gateway and HTTP translator, and
7 ServerName localhost:80
8 ServerAlias 127.0.0.1:80
9 #DocumentRoot /openils/var/web/
10 #DirectoryIndex index.xml index.html index.xhtml
12 # ----------------------------------------------------------------------------------
13 # Configure the gateway
14 # ----------------------------------------------------------------------------------
15 OSRFGatewayConfig /openils/conf/opensrf_core.xml
16 # Translator memcache server. Default is localhost
17 # OSRFTranslatorCacheServer 127.0.0.1:11211
19 # ----------------------------------------------------------------------------------
20 # XXX Note, it's important to explicitly set the JSON encoding style
21 # (OSRFGatewayLegacyJSON), since the default encoding style will likely change
23 # ----------------------------------------------------------------------------------
24 # OpenSRF JSON legacy gateway
25 # ----------------------------------------------------------------------------------
27 SetHandler osrf_json_gateway_module
28 OSRFGatewayLegacyJSON "true"
31 # ----------------------------------------------------------------------------------
32 # New-style OpenSRF JSON gateway
33 # ----------------------------------------------------------------------------------
34 <Location /osrf-gateway-v1>
35 SetHandler osrf_json_gateway_module
36 OSRFGatewayLegacyJSON "false"
40 # ----------------------------------------------------------------------------------
41 # OpenSRF-over-HTTP translator
42 # (http://open-ils.org/dokuwiki/doku.php?id=opensrf_over_http)
43 # ----------------------------------------------------------------------------------
44 <Location /osrf-http-translator>
45 SetHandler osrf_http_translator_module