# HG changeset patch # User Matthew Wild # Date 1353003850 18000 # Node ID 4ef69555a8790041c9ce3cec9cdc405af821ce4f # Parent f3662fea95d9e8a0166da10291a5ff0712340d60 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') diff -r f3662fea95d9 -r 4ef69555a879 plugins/mod_http.lua --- a/plugins/mod_http.lua Thu Nov 15 13:18:41 2012 -0500 +++ b/plugins/mod_http.lua Thu Nov 15 13:24:10 2012 -0500 @@ -67,7 +67,7 @@ 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)