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
commite4c43fa10a7b69b7ce5bfa433d33132447fa0223 (patch)
treec063ff68320861335b2ee507b70fd2e863b6ad43 /plugins
parentb466f525b07225b942532b54293891526f281e64 (diff)
downloadprosody-e4c43fa10a7b69b7ce5bfa433d33132447fa0223.tar.gz
prosody-e4c43fa10a7b69b7ce5bfa433d33132447fa0223.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)