]> git.evergreen-ils.org Git - OpenSRF.git/blob - examples/apache2/opensrf
1. For the "request" command: removed the calls to osrfAppSessionConnect()
[OpenSRF.git] / examples / apache2 / opensrf
1 # This is a barebones Apache virtual host configuration, suitable
2 # for testing out the OpenSRF gateway and HTTP translator, and
3 # that's about it.
4
5 NameVirtualHost *:80
6 <VirtualHost *:80>
7         ServerName localhost:80
8         ServerAlias 127.0.0.1:80
9         #DocumentRoot /openils/var/web/
10         #DirectoryIndex index.xml index.html index.xhtml
11
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
18
19         # ----------------------------------------------------------------------------------
20         # XXX Note, it's important to explicitly set the JSON encoding style 
21         # (OSRFGatewayLegacyJSON), since the default encoding style will likely change 
22         # with OpenSRF 1.0
23         # ----------------------------------------------------------------------------------
24         # OpenSRF JSON legacy gateway
25         # ----------------------------------------------------------------------------------
26         <Location /gateway>
27                 SetHandler osrf_json_gateway_module
28                 OSRFGatewayLegacyJSON "true"
29                 allow from all
30         </Location>
31         # ----------------------------------------------------------------------------------
32         # New-style OpenSRF JSON gateway
33         # ----------------------------------------------------------------------------------
34         <Location /osrf-gateway-v1>
35                 SetHandler osrf_json_gateway_module
36                 OSRFGatewayLegacyJSON "false"
37                 allow from all
38         </Location>
39
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
46                 allow from all
47         </Location>
48
49 </VirtualHost>