mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Handle case where <IfModeule prefork.c> is used
This commit is contained in:
@@ -124,7 +124,7 @@ foreach my $d (&get_httpd_defines()) {
|
||||
}
|
||||
}
|
||||
while($line = <$fh>) {
|
||||
chop;
|
||||
$line =~ s/\r|\n//g;
|
||||
$line =~ s/^\s*#.*$//g;
|
||||
if ($line =~ /^\s*<\/(\S+)\s*(.*)>/) {
|
||||
# end of a container directive. This can only happen in a
|
||||
@@ -144,6 +144,11 @@ while($line = <$fh>) {
|
||||
$altmod =~ s/^(\S+)_module$/mod_$1/g;
|
||||
local $mpmmod = $mod;
|
||||
$mpmmod =~ s/^mpm_//; $mpmmod =~ s/_module$//;
|
||||
if ($mod eq "prefork") {
|
||||
# Special case for all the prefork aliases
|
||||
($mod, $altmod, $mpmmod) = ("mod_".$mod."_module",
|
||||
"mod_mpm_".$mod, $mod);
|
||||
}
|
||||
if (!$not && $httpd_modules{$mod} ||
|
||||
$not && !$httpd_modules{$mod} ||
|
||||
!$not && $httpd_modules{$altmod} ||
|
||||
|
||||
Reference in New Issue
Block a user