我已经在 Ubuntu 10.04 上安装了带有 mod_evasive 模块的 apache2,并且我希望每当 mod_evasive 将 IP 列入黑名单时都会收到电子邮件警报。为此,我在/etc/apache2/conf.d/modevasive 中提到了我的电子邮件地址。当我从终端/bin/echo 'test apache mod' 发送电子邮件时 | sudo/bin/mail -s 'test apache mod' vinish@example.com 我将收到并发送电子邮件
即使我在 DOSSystemCommand 下提到它,它对我也不起作用
如果尝试使用 perl 脚本阻止网站,并且我提到了日志文件/etc/apache2/conf.d/modevasive 文件及其工作文件,那么这意味着模块正在以某种方式工作 DOSSystemCommand 和 DOSEmailNotify 选项不起作用
最佳答案
直接来自Linode Library
Be sure MAILER is set correctly in mod_evasive.c (or mod_evasive20.c). The default is "/bin/mail -t %s" where %s is used to denote the destination email address set in the configuration. If you are running on linux or some other operating system with a different type of mailer, you'll need to change this.
关于linux - mod_evasive 模块 DOSSystemCommand 和 DOSEmailNotify 选项不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15504603/