diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-09-21 17:57:28 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-09-21 17:57:28 +0100 |
commit | 3c22160354ee11ce92c0e337b6c753426b9cebdb (patch) | |
tree | b0cb2b2e5d0bf05fe837be6f756bdca22e85e983 /plugins/mod_httpserver.lua | |
parent | 9c89132f2873798eec447195c0f5c43552d382b9 (diff) | |
download | prosody-3c22160354ee11ce92c0e337b6c753426b9cebdb.tar.gz prosody-3c22160354ee11ce92c0e337b6c753426b9cebdb.zip |
mod_httpserver: Configurable filesystem path to serve from
Diffstat (limited to 'plugins/mod_httpserver.lua')
-rw-r--r-- | plugins/mod_httpserver.lua | 2 |
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 :(" }; |