This commit is contained in:
Christophe Maudoux 2022-03-03 23:29:48 +01:00
parent 9c512f8e5b
commit 668b11b399
3 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
Writing rules and headers
=========================
LL::NG manages applications by their hostname (Apache's
Virtual Hosts or Nginx Block Servers). Rules are used for protecting applications,
LL::NG manages applications by their hostname (Apache Virtual Hosts or
Nginx Block Servers). Rules are used for protecting applications,
and HTTP headers are appended to each request for sending datas to protected
applications (for logs, profiles,...).

View File

@ -515,12 +515,12 @@ sub _displayRegister {
}
: undef;
unless ($_2fDevices) {
$self->logger->debug("No 2F Device found");
$self->logger->debug("None 2F device found");
$_2fDevices = [];
}
}
else {
$self->userLogger->warn("Do not diplay 2F Devices!");
$self->userLogger->warn("Do not display 2F devices!");
}
# Parse second factors to display delete button if allowed and upgrade button

View File

@ -625,7 +625,7 @@ sub buildRule {
my $compiledRule =
$self->HANDLER->buildSub( $self->HANDLER->substitute($rule) );
unless ($compiledRule) {
my $error = $self->HANDLER->tsv->{jail}->error || '???';
my $error = $self->HANDLER->tsv->{jail}->error || 'Unable to compile rule';
$self->logger->error( "Bad" . $ruleDesc . "rule: " . $error );
}
return $compiledRule,;