web staff : dynamic apache index delivery
authorBill Erickson <berick@esilibrary.com>
Thu, 12 Dec 2013 14:17:06 +0000 (09:17 -0500)
committerBill Erickson <berick@esilibrary.com>
Thu, 12 Dec 2013 14:17:06 +0000 (09:17 -0500)
commitb6c0f2feadcd951e806350e5d6a59d8d81497bff
tree2bd264b045b8559cacfa9e06d407ef65efac3791
parent729e70822b0fda077cc22c7b381e5203f1361b13
web staff : dynamic apache index delivery

Generic apache config wasn't working, since different apps create
arbitrarily nested URL parameters, which means each app would need its
own Apache rewrite configuration to sort them all out.

This creates a new OILSWebStopAtIndex EGWeb.pm option which tells the
code to check for the presence of an index file at the current directory
as it's looking up the directory tree for the requested template.

Example w/ stop-at-index enabled.

The code will look for these templates in this order:

URL -> /eg/staff/circ/patron/142/holds

1. staff/circ/patron/142/holds.tt2
2. staff/circ/patron/142/index.tt2
3. staff/circ/patron/142.tt2
4. staff/circ/patron/index.tt2 -- file exists, all done.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/examples/apache/eg_vhost.conf.in
Open-ILS/examples/apache_24/eg_vhost.conf.in
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm