# HG changeset patch # User Matthew Wild # Date 1253552248 -3600 # Node ID e32593074602a785d152f9e153825f29db4d0973 # Parent 4aa5e80d8ce3a93ae6ea0c98d9df0514df59aece mod_httpserver: Configurable filesystem path to serve from diff -r 4aa5e80d8ce3 -r e32593074602 plugins/mod_httpserver.lua --- a/plugins/mod_httpserver.lua Mon Sep 21 15:10:36 2009 +0100 +++ b/plugins/mod_httpserver.lua Mon Sep 21 17:57:28 2009 +0100 @@ -13,7 +13,7 @@ local t_concat = table.concat; local check_http_path; -local http_base = "www_files"; +local http_base = config.get("*", "core", "http_path") or "www_files"; local response_403 = { status = "403 Forbidden", body = "

Invalid URL

Sorry, we couldn't find what you were looking for :(" }; local response_404 = { status = "404 Not Found", body = "

Page Not Found

Sorry, we couldn't find what you were looking for :(" };