Add PhoneList.pm stuff to Apache 2.4 config
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 18 Sep 2013 18:14:16 +0000 (14:14 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 26 Sep 2013 00:47:39 +0000 (20:47 -0400)
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/examples/apache_24/eg.conf.in
Open-ILS/examples/apache_24/eg_vhost.conf.in

index fb5e00b..67dfd53 100644 (file)
@@ -19,6 +19,7 @@ PerlChildInitHandler OpenILS::WWW::Reporter::child_init
 PerlChildInitHandler OpenILS::WWW::SuperCat::child_init
 PerlChildInitHandler OpenILS::WWW::AddedContent::child_init
 PerlChildInitHandler OpenILS::WWW::AutoSuggest::child_init
+PerlChildInitHandler OpenILS::WWW::PhoneList::child_init
 
 # ----------------------------------------------------------------------------------
 # Set some defaults for our working directories
index 57378c7..2e51116 100644 (file)
@@ -551,6 +551,9 @@ RewriteRule . - [E=locale:%1]
     Options +ExecCGI
     PerlSendHeader On
     Require all granted 
+    <IfModule mod_headers.c>
+        Header onsuccess set Cache-Control no-cache
+    </IfModule>
 </Location>
 
 # ----------------------------------------------------------------------------------
@@ -577,6 +580,25 @@ RewriteRule ^/conify/([a-z]{2}-[A-Z]{2})/global/(.*)$ /conify/global/$2 [E=local
     Require all granted 
 </Location>
 
+# ----------------------------------------------------------------------------------
+# The PhoneList lives here
+# ----------------------------------------------------------------------------------
+<Location /phonelist>
+    SetHandler perl-script
+    AuthType Basic
+    AuthName "PhoneList Login"
+    require valid-user
+    PerlOptions +GlobalRequest
+    PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
+    PerlHandler OpenILS::WWW::PhoneList
+    PerlAuthenHandler OpenILS::WWW::Proxy::Authen
+    Options +ExecCGI
+    PerlSendHeader On
+    allow from all
+    <IfModule mod_headers.c>
+        Header onsuccess set Cache-Control no-cache
+    </IfModule>
+</Location>
 <Location /vandelay-upload>
     SetHandler perl-script
     PerlHandler OpenILS::WWW::Vandelay::spool_marc