aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-09-21 17:57:28 +0100
committerMatthew Wild <mwild1@gmail.com>2009-09-21 17:57:28 +0100
commit3c22160354ee11ce92c0e337b6c753426b9cebdb (patch)
treeb0cb2b2e5d0bf05fe837be6f756bdca22e85e983
parent9c89132f2873798eec447195c0f5c43552d382b9 (diff)
downloadprosody-3c22160354ee11ce92c0e337b6c753426b9cebdb.tar.gz
prosody-3c22160354ee11ce92c0e337b6c753426b9cebdb.zip
mod_httpserver: Configurable filesystem path to serve from
-rw-r--r--plugins/mod_httpserver.lua2
1 files changed, 1 insertions, 1 deletions
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 = "<h1>Invalid URL</h1>Sorry, we couldn't find what you were looking for :(" };
local response_404 = { status = "404 Not Found", body = "<h1>Page Not Found</h1>Sorry, we couldn't find what you were looking for :(" };