plugins/mod_httpserver.lua

changeset 1815
1c0bde3db7d8
parent 1771
39e6b986ef01
parent 1811
e32593074602
child 1870
5b5e4a4ecb55
--- a/plugins/mod_httpserver.lua	Mon Sep 21 14:46:12 2009 +0100
+++ b/plugins/mod_httpserver.lua	Thu Sep 24 11:16:25 2009 +0100
@@ -12,7 +12,7 @@
 local open = io.open;
 local t_concat = table.concat;
 
-local http_base = "www_files";
+local http_base = config.get("*", "core", "http_path") or "www_files";
 
 local response_400 = { status = "400 Bad Request", body = "<h1>Bad Request</h1>Sorry, we didn't understand your request :(" };
 local response_404 = { status = "404 Not Found", body = "<h1>Page Not Found</h1>Sorry, we couldn't find what you were looking for :(" };

mercurial