Re: How to configure ModSecurity on CentOS 8?

Ervin Hegedüs <[email protected]> Mon, 22 Feb 2021 08:41:39 +0100
Newsgroups gmane.comp.apache.mod-security.user
Message-ID <[email protected]>
Hi Jason,

On Sun, Feb 21, 2021 at 07:28:21PM +0000, Jason Long wrote:
>  Thank you so much for your answer.I installed ModSecurity as below:
> # yum install gcc-c++ flex bison yajl yajl-devel curl-devel curl GeoIP-devel doxygen zlib-devel pcre-devel# cd /opt/# git clone https://github.com/SpiderLabs/ModSecurity# cd ModSecurity# git checkout -b v3/master origin/v3/master# sh build.sh# git submodule init# git submodule update# ./configure# yum install https://archives.fedoraproject.org/pub/archive/fedora/linux/updates/23/x86_64/b/bison-3.0.4-3.fc23.x86_64.rpm# make# make install

in your first mail you wrote:

> I'm using CentOS 8 x86_64 and I want to configure ModSecurity
> for Apache. I looked at
> "https://phoenixnap.com/kb/setup-configure-modsecurity-on-apache"
> tutorial

and that tutorial suggests install "mod_security" package:

`sudo yum install mod_security`

Therefore I don't see the reason why did you installed these
development tools and why did you installed ModSecurity v3...

> But I can't see any "mod_security.conf" file in "httpd" directory! Why?

I don't have any CentOS (ANY) system, just downloaded the package
from here:
http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/mod_security-2.9.2-8.el8.x86_64.rpm

and found mod_security.conf with name
'/etc/httpd/conf.d/mod_security.conf'.




a.



_______________________________________________
mod-security-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mod-security-users
Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs:
http://www.modsecurity.org/projects/commercial/rules/
http://www.modsecurity.org/projects/commercial/support/