From 137ade2a19ece6170ba29fa954a9a1c3ccbb9f9c Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Fri, 2 Nov 2012 17:25:06 -0500
Subject: supplemental-web:  added unique zoneminder 404 page

refs  #857
---
 abs/core/supplemental-web/PKGBUILD                 |  2 +-
 abs/core/supplemental-web/lighttpd-supplement.conf | 14 ++++++++++----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/abs/core/supplemental-web/PKGBUILD b/abs/core/supplemental-web/PKGBUILD
index 4e8c07b..237d4da 100644
--- a/abs/core/supplemental-web/PKGBUILD
+++ b/abs/core/supplemental-web/PKGBUILD
@@ -32,6 +32,6 @@ build() {
 
 }
 
-md5sums=('400abe98c97848f8b12c5eb111ac47e4'
+md5sums=('521714803b5a3df529f0fc5f853c0d55'
          '3d8c7b430c1319d706ca420825918d2a'
          '81cdb6ee6804fa36366c6e259a80e7b4')
diff --git a/abs/core/supplemental-web/lighttpd-supplement.conf b/abs/core/supplemental-web/lighttpd-supplement.conf
index a07564a..9d718bb 100644
--- a/abs/core/supplemental-web/lighttpd-supplement.conf
+++ b/abs/core/supplemental-web/lighttpd-supplement.conf
@@ -20,15 +20,21 @@ server.error-handler-404   = "/error/mythexport.html"
 $HTTP["url"] =~ "(call_log)" {
 server.error-handler-404   = "/error/call_log.html"
 }
+
+
+$HTTP["url"] =~ "(zm)" {
+    server.error-handler-404   = "/error/zoneminder.html"
+    }
+
 ## error-handler for status 404
 #server.error-handler-404   = "/error-handler.html"
 server.errorfile-prefix = "/data/srv/httpd/htdocs/error/status-"
 
-alias.url = ( "/logs/" => "/var/log/" )
+alias.url += ( "/logs/" => "/var/log/" )
 $HTTP["url"] =~ "^/logs($|/)" {
-dir-listing.activate= "enable"
-dir-listing.hide-dotfiles = "enable"
-dir-listing.external-css = "/frame.css"
+    dir-listing.activate= "enable"
+    dir-listing.hide-dotfiles = "enable"
+    dir-listing.external-css = "/frame.css"
 }
 
 
-- 
cgit v0.12

