Apache2 + Mod_Evasive,仅适用于一台虚拟主机吗? [英] Apache2 + Mod_Evasive, only for one virtual host?
问题描述
我试图仅将mod_evasive用于一台虚拟主机的apache2,但是无论我做什么,该模块都会加载到整个apache上.
I am trying to utilize the mod_evasive for apache2 for one virtualhost only but it appears no matter what i do the module is loaded on the entirety of apache.
我浏览了文档,但在其自身的配置中找不到任何禁用mod evasive的开关,这使我只能为特定的虚拟主机启用它.
I looked through the docs and i cannot find any switch to disable mod evasive in it's own configuration allowing me to enable it only for specific vhosts.
我了解我可以简单地将默认配置设置为可笑的数字,从而使其永远不会触发/禁止默认设置,然后针对某些区域进行特定配置,我希望它触发,但这将是性能损失一切.
I understand that i could simply do put the default config to ridiculous numbers making it never trigger/ban on the default and then do specific configurations for certain areas i would want it to trigger but that would be a performance hog having evasive run on everything.
我该如何处理?我是否需要将需要落后于Mod evasive的网站放在完全独立的apache2服务器上?
How do i go about this? Do i need to put the site that needs to be behind mod evasive on a completely separate apache2 server?
推荐答案
在代理Jira和Confluence时遇到同样的问题.他们发送了很多请求,始终被阻止.最终将mod_evasive留在了全局级别,并将以下内容放到了我不想阻止的虚拟主机上,并且一直在起作用:
Ran into the same problem with proxying Jira and Confluence. They send so many requests it was always blocking. Ended up leaving mod_evasive at the global level and putting the following for vhosts I don't want to block and it has been working:
<IfModule mod_evasive24.c>
DOSBlockingPeriod 0
</IfModule>
这篇关于Apache2 + Mod_Evasive,仅适用于一台虚拟主机吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!