separating the two JSON gateways for backwards compatibility and explicitly setting...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Oct 2007 16:00:35 +0000 (16:00 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Oct 2007 16:00:35 +0000 (16:00 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7893 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/apache/eg_vhost.conf

index 4d9a842..1c945bd 100644 (file)
@@ -176,10 +176,22 @@ OSRFGatewayConfig /openils/conf/opensrf_core.xml
        
        
 # ----------------------------------------------------------------------------------
-# OpenSRF JSON gateway
+# XXX Note, it's important to explicitly set the JSON encoding style 
+# (OSRFGatewayLegacyJSON), since the default encoding style will likely change 
+# with OpenSRF 1.0
+# ----------------------------------------------------------------------------------
+# OpenSRF JSON legacy gateway
 # ----------------------------------------------------------------------------------
 <Location /gateway>
     SetHandler osrf_json_gateway_module
+    OSRFGatewayLegacyJSON "true"
+    allow from all
+</Location>
+# ----------------------------------------------------------------------------------
+# New-style OpenSRF JSON gateway
+# ----------------------------------------------------------------------------------
+<Location /osrf-gateway-v1>
+    SetHandler osrf_json_gateway_module
     OSRFGatewayLegacyJSON "false"
     allow from all
 </Location>