mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
FIX check_wildcard in setup-ngxblocker
This commit is contained in:
parent
623539b6b5
commit
8d9362cc63
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ http {
|
|||
# Load modular configuration files from the /etc/nginx/conf.d directory.
|
||||
# See http://nginx.org/en/docs/ngx_core_module.html#include
|
||||
# for more information.
|
||||
#include /etc/nginx/conf.d/*.conf;
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
|
|
|
@ -175,7 +175,7 @@ longest_str() {
|
|||
|
||||
check_wildcard() {
|
||||
local file=$1 dir=$(basename $2)
|
||||
local check="$(grep -E "include[[:alnum:] /]+$dir/\*" $file)"
|
||||
local check="$(grep -E "^[^#]+include[[:alnum:] /]+$dir/\*" $file)"
|
||||
echo $check
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue