web staff : log update for apache config
authorBill Erickson <berick@esilibrary.com>
Wed, 11 Dec 2013 16:36:58 +0000 (11:36 -0500)
committerBill Erickson <berick@esilibrary.com>
Wed, 11 Dec 2013 16:36:58 +0000 (11:36 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
web-staff-log.txt

index 62fa8dc..343cddc 100644 (file)
@@ -127,6 +127,29 @@ dynamic configuration that can map elemenents of arbitrarily-nested
 paths (or possibly a small set with predefined path depths) to the 
 correct index file would be ideal.
 
+UPDATE: 2013-12-11 Apache Config Repaired
++++++++++++++++++++++++++++++++++++++++++
+
+I finally got around to fixing the Apache configuration.  It now supports
+arbitrary nesting:  
+
+[source,conf]
+-----------------------------------------------------------------------------
+<LocationMatch /eg/staff/>
+    Options -MultiViews
+
+    # map /eg/staff to /eg/staff/index
+    RewriteEngine On
+    RewriteCond %{PATH_INFO} =/staff/
+    RewriteRule (.*) /eg/staff/index [L,DPI]
+
+    # map /eg/staff/foo/bar to /eg/staff/foo/index
+    RewriteEngine On
+    RewriteCond %{PATH_INFO} !.*/(index|css|t_*)
+    RewriteRule (.*)/[^\/]+$ $1/index [L,DPI]
+</LocationMatch>
+-----------------------------------------------------------------------------
+
 
 2013-11-21 Angular $scope inheritance
 -------------------------------------