diff --git a/scripts/http-apache-server-status.nse b/scripts/http-apache-server-status.nse index 421eba625..3e5126625 100644 --- a/scripts/http-apache-server-status.nse +++ b/scripts/http-apache-server-status.nse @@ -30,7 +30,7 @@ References: -- | Server Built: Jul 24 2015 15:59:00 -- | Server Uptime: 53 minutes 31 seconds -- | Server Load: 0.00 0.01 0.05 --- | Requests: +-- | VHosts: -- |_ www.example.com:80 GET /server-status HTTP/1.1 -- -- @xmloutput @@ -39,8 +39,8 @@ References: -- Jul 24 2015 15:59:00 -- 59 minutes 26 seconds -- 0.01 0.02 0.05 --- --- www.example.com:80 GET /server-status HTTP/1.1 +--
+-- www.example.com:80 --
author = "Eric Gershman" @@ -78,21 +78,21 @@ action = function(host, port) result["Server Uptime"] = string.match(response.body, "Server%suptime:%s*([^<]*).-") do -- skip line if the request is empty - if not string.match(line, "") then - local request = string.match(line, ">([^<]*)([^<]*)") - uniq_requests[request] = 1 + if not string.match(line, "") then + local vhost = string.match(line, ">([^<]*)