I am testing a state of affairs the place, I am internet hosting two-site on identical machine with assist of apache internet server. I am trying to allow mod_evasive for just one website. I do not see any solution to get it working. Following is the state of affairs and issues I’ve tried.
- Ubuntu 16.04 with Apache2 Internet/httpd server
- allow host with respective conf recordsdata for wwww.site1.com and wwww.site2.com
- Set up and allow mod_evasive with “apt-get set up libapache2-mod-evasive”
- I solely need the mod_evasive for www.site1.com
Issues I’ve tried.
 Enabling mod_evasive on world stage and add following to site1.conf. This impacts each site1 and site2.
<IfModule mod_evasive20.c> DOSHashTableSize 3097 DOSPageCount 2 DOSSiteCount 10 DOSPageInterval 10 DOSSiteInterval 100 DOSBlockingPeriod 10 DOSLogDir /var/log/mod_evasive </IfModule>
 Disabling mod_evasive on globla stage and cargo evasive module + conf on tthe site1. Nonetheless it utilized for each the positioning.
 Added DOSBlockinfPeriod == Zero to site2. However nonetheless no luck.
<IfModule mod_evasive24.c> DOSBlockingPeriod 0 </IfModule>
Need assistance on configuration that permits mod_evasive for just one digital host OR enable override props per digital host “.conf” recordsdata.