From 233f560c27a3fae70901ff6674ccd5e676676bb6 Mon Sep 17 00:00:00 2001
From: Bill Erickson <berick@esilibrary.com>
Date: Tue, 13 Sep 2011 13:32:22 -0400
Subject: [PATCH] Further updates to eg_vhost for tpac

* Comment out locale handlers that do not have translations by default.
Otherwise, Apache will log the error in the error log.

* Added some additional configuration comments

Signed-off-by: Bill Erickson <berick@esilibrary.com>
---
 Open-ILS/examples/apache/eg_vhost.conf | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/Open-ILS/examples/apache/eg_vhost.conf b/Open-ILS/examples/apache/eg_vhost.conf
index a932df3c70..d2249eb47a 100644
--- a/Open-ILS/examples/apache/eg_vhost.conf
+++ b/Open-ILS/examples/apache/eg_vhost.conf
@@ -540,6 +540,8 @@ RewriteRule ^/openurl$ ${openurl:%1} [NE,PT]
     PerlSetVar OILSWebBasePath "/eg"
     PerlSetVar OILSWebWebDir "/openils/var/web"
     PerlSetVar OILSWebDefaultTemplateExtension "tt2"
+
+    # Enable Template-Toolkit error debugging messages (apache error log)
     PerlSetVar OILSWebDebugTemplate "true"
 
     # -------------------------------------------------------
@@ -549,16 +551,16 @@ RewriteRule ^/openurl$ ${openurl:%1} [NE,PT]
     #PerlSetVar OILSWebMediaPrefix "http://static.example.com/media"
 
     # Locale messages files
-    PerlAddVar OILSWebLocale "en"
-    PerlAddVar OILSWebLocale "/openils/var/data/locale/messages.en.po"
-    PerlAddVar OILSWebLocale "en_ca"
-    PerlAddVar OILSWebLocale "/openils/var/data/locale/messages.en_ca.po"
-    PerlAddVar OILSWebLocale "fr_ca"
-    PerlAddVar OILSWebLocale "/openils/var/data/locale/messages.fr_ca.po"
+    #PerlAddVar OILSWebLocale "en"
+    #PerlAddVar OILSWebLocale "/openils/var/data/locale/messages.en.po"
+    #PerlAddVar OILSWebLocale "en_ca"
+    #PerlAddVar OILSWebLocale "/openils/var/data/locale/messages.en_ca.po"
+    #PerlAddVar OILSWebLocale "fr_ca"
+    #PerlAddVar OILSWebLocale "/openils/var/data/locale/messages.fr_ca.po"
 
     # Templates will be loaded from the following paths in reverse order.
     PerlAddVar OILSWebTemplatePath "/openils/var/templates"
-    PerlAddVar OILSWebTemplatePath "/openils/var/templates_localskin"
+    #PerlAddVar OILSWebTemplatePath "/openils/var/templates_localskin"
 
     <IfModule mod_deflate.c>
         SetOutputFilter DEFLATE
-- 
2.11.0