Permalink
Browse files

CentOS httpd sends all output to stderr. Put it back in stdout to par…

…se it.
  • Loading branch information...
1 parent b541769 commit 8569adce4d65b30a74c86aaf1f6cd1fe401a3b5b @StephenBrown2 committed Mar 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 vhost-info.pl
View
@@ -105,7 +105,7 @@ ()
# Now we will begin by parsing the output of apache's -t -D DUMP_VHOSTS
# We're going to be examining all of the included .conf files
-open(DUMP_VHOSTS,"$APACHECTLPATH -t -S 2>/dev/null |") or die $!;
+open(DUMP_VHOSTS,"$APACHECTLPATH -t -S 2>&1 |") or die $!;
my @all_conf;
while (<DUMP_VHOSTS>) {
m@.*port\s+([0-9]+)\s+\w+\s+(\S+)\s+\((.+):([0-9])\).*@ && do {

0 comments on commit 8569adc

Please sign in to comment.