使用Nginx LUA脚本防御log4shell(CVE-2021-44228和CVE-2021-45046)漏洞攻击
需要启用Nginx lua模块(https://www.nginx.com/resources/wiki/modules/lua/)。
在server {...}上下文中使用include /path/to/mitigate-log4shell.conf;。可以包含在多个server上下文中。
也可以放在http {...}上下文中,因此会自动应用于每个Nginx配置。
更多信息请参见我们的博客文章:https://www.infiniroot.com/blog/1155/using-nginx-lua-script-mitigate-log4shell-cve-2021-44228-vulnerability。