aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-11-15 13:24:10 -0500
committerMatthew Wild <mwild1@gmail.com>2012-11-15 13:24:10 -0500
commite3281bcdb9f7bfbc0ec392b35ab29f841a384efa (patch)
treec063ff68320861335b2ee507b70fd2e863b6ad43 /plugins
parent66753afccce6803a8b05bbc44a92e1ea68b830f8 (diff)
downloadprosody-e3281bcdb9f7bfbc0ec392b35ab29f841a384efa.tar.gz
prosody-e3281bcdb9f7bfbc0ec392b35ab29f841a384efa.zip
mod_http: Add 'http_host' option to change the HTTP virtual host that this host is accessible at (e.g. allows mapping a host to '127.0.0.1')
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_http.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index 22441faa..a7b4a45f 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -67,7 +67,7 @@ function moduleapi.http_url(module, app_name, default_path)
end
function module.add_host(module)
- local host = module.host;
+ local host = module:get_option_string("http_host", module.host);
local apps = {};
module.environment.apps = apps;
local function http_app_added(event)