Mercurial > prosody-hg
diff plugins/mod_httpserver.lua @ 1816:1c0bde3db7d8
Merge with 0.5
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 24 Sep 2009 11:16:25 +0100 |
| parents | 39e6b986ef01 e32593074602 |
| children | 5b5e4a4ecb55 |
line wrap: on
line diff
--- 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 :(" };
