From 1417ab1ddd69890d0979355cb2a50b620f5dfcaf Mon Sep 17 00:00:00 2001 From: slashtolau Date: Thu, 4 Feb 2016 19:53:48 +0100 Subject: [PATCH] change line number due to output change in kali2 apache2ctl -S output is different in kali 2. I use "apache2ctl -D DUMP_VHOSTS", and changed the number in the split code. A message will appear at the top of the output in this command if the ServerName is not correctly configured in apache2. --- app/models/global_settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/global_settings.rb b/app/models/global_settings.rb index 9ce06b47..df466e06 100644 --- a/app/models/global_settings.rb +++ b/app/models/global_settings.rb @@ -21,7 +21,7 @@ def self.apache_vhosts if vhosts_output.blank? [] else - vhosts_output.split("\n")[3..20] + vhosts_output.split("\n")[1..20] end end end