- Edited
Hi, I use Nginx 1.19.8 for my websites and due to recent attacks on one of my websites I wanted to give Nginx WAF a try. After installing it I was not able to enter any of my websites. And when I check my nginx errorlogs I see this error for every website I have tried to enter:
2021/03/15 09:13:36 [error] 31500#0: *1 failed to load external Lua file "/www/server/btwaf/header.lua": cannot open /www/server/btwaf/header.lua: No such file or directory while reading response header from upstream, client: 141.101.xx.xx, server: Mydomainhere, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-80.sock:", host: "Mydomainhere"
2021/03/15 09:13:37 [error] 31500#0: *3 failed to load external Lua file "/www/server/btwaf/header.lua": cannot open /www/server/btwaf/header.lua: No such file or directory while sending response to client, client: 172.69.xx.xx, server: Mydomainhere, request: "GET /favicon.ico HTTP/1.1", host: "Mydomainhere", referrer: "https://Mydomainhere"
And this is the Cloudflare error:
BTW Nginx WAF version is 8.7.8