From 67144d911b344344f47991f19bd6a344cb5acdd3 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 22 Nov 2012 20:40:06 +0100 Subject: mod_http: Make module:http_url() aware of http_host --- plugins/mod_http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index 4f09716c..f386f870 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -55,7 +55,7 @@ function moduleapi.http_url(module, app_name, default_path) for port, services in pairs(ports) do local url = { scheme = (external_url.scheme or services[1].service.name); - host = (external_url.host or module.host); + host = (external_url.host or module:get_option_string("http_host", module.host)); port = tonumber(external_url.port) or port or 80; path = normalize_path(external_url.path or "/").. (get_base_path(module, app_name, default_path or "/"..app_name):sub(2)); -- cgit v1.2.3