Control Web Panel

WebPanel => Apache => Topic started by: mrnovo on February 19, 2021, 03:00:52 PM

Title: Installing mod_evasive
Post by: mrnovo on February 19, 2021, 03:00:52 PM
Hi,

Can anyone help me on installing mod_evasive ? yum install mod_evasive is causing problems.

Regards.
Title: Re: Installing mod_evasive
Post by: Sandeep on February 20, 2021, 02:42:43 AM
Hi,

Can anyone help me on installing mod_evasive ? yum install mod_evasive is causing problems.

Regards.
hello
you need to use nginx rate limiting instead of this old apache module.
Title: Re: Installing mod_evasive
Post by: mrnovo on February 20, 2021, 04:11:50 AM
Hi,

That was my first choice but here is what i get;

nginx[19691]: nginx: [emerg] bind() to x.x.x.67:80 failed (98: Address already in use)
nginx[19691]: nginx: [emerg] bind() to x.x.x.80:80 failed (98: Address already in use)
nginx[19691]: nginx: [emerg] bind() to x.x.x.75:80 failed (98: Address already in use)
....

and so on

I've tried stoping all services and start them again.

If i start apache first nginx cant start and throws that error, if i start nginx first and then apache this time apache throws

apachectl[19394]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 Feb 20 07:05:19
apachectl[19394]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Title: Re: Installing mod_evasive
Post by: mrnovo on February 22, 2021, 04:31:38 AM
So I've found out that because of my previous edits on httpd.conf, I think webserver rebuild on CWP was unable to edit httpd.conf Listen directive to 8181 thats was i was getting error.

Title: Re: Installing mod_evasive
Post by: Igor S. on February 22, 2021, 10:22:47 AM
I would try to rebild WEB Servers without nginx and then Apache+nginx. It will change configuration.