From 3c22160354ee11ce92c0e337b6c753426b9cebdb Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 21 Sep 2009 17:57:28 +0100 Subject: mod_httpserver: Configurable filesystem path to serve from --- plugins/mod_httpserver.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_httpserver.lua b/plugins/mod_httpserver.lua index 55ac3c7a..73357f1b 100644 --- a/plugins/mod_httpserver.lua +++ b/plugins/mod_httpserver.lua @@ -13,7 +13,7 @@ local open = io.open; 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 :(" }; -- cgit v1.2.3