Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…se it.
  • Loading branch information...
commit 8569adce4d65b30a74c86aaf1f6cd1fe401a3b5b 1 parent b541769
@StephenBrown2 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1 
2 
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.