dvershinin / nginx-honeypot

NGINX honeypot with lots of honey
https://www.getpagespeed.com/server-setup/security/nginx-honeypot-the-easiest-and-fastest-way-to-block-bots
MIT License
10 stars 3 forks source link

unknown "has_flies" variable #7

Open morebrackets opened 3 months ago

morebrackets commented 3 months ago

nginx -t 2024/07/29 19:44:19 [emerg] 36015#36015: unknown "has_flies" variable nginx: configuration file /etc/nginx/nginx.conf test failed

nginx -v nginx version: nginx/1.24.0 (Ubuntu)

dvershinin commented 3 months ago

Ensure that the file honeypot/honey.conf is included in http { } block by means of direct include directive or placing it under /etc/nginx/conf.d (in which case ensure that this directory is included by NGINX, e.g.:

http {
    # ...
    include /etc/nginx/conf.d/*.conf;
    # ...
}