plugins/mod_http.lua
changeset 6025 583e5c1365fe
parent 5427 199e7989f713
child 6026 8a8be471ec72
--- a/plugins/mod_http.lua	Tue Feb 18 16:03:13 2014 -0500
+++ b/plugins/mod_http.lua	Thu Feb 20 19:08:55 2014 +0100
@@ -42,7 +42,7 @@
 	return (normalize_path(host_module:get_option("http_paths", {})[app_name] -- Host
 		or module:get_option("http_paths", {})[app_name] -- Global
 		or default_app_path)) -- Default
-		:gsub("%$(%w+)", { host = module.host });
+		:gsub("%$(%w+)", { host = host_module.host });
 end
 
 local ports_by_scheme = { http = 80, https = 443, };