HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How To install Mod Security on Nginx web server for Centos 7.3

2,752 views November 10, 2017 6:51

Watch on YouTube
ChannelQuick Notepad Tutorial

Description from the creator

ModSecurity is an open source web application firewall (WAF) module which is great for protecting Apache, Nginx, and IIS from various cyber attacks that target potential vulnerabilities in various web applications.
ModSecurity is a toolkit for real-time web application monitoring, logging, and access control.
cat /etc/redhat-release ; hostname ;hostname -I ;sestatus
yum groupinstall -y "Development Tools"
yum install gcc make automake autoconf libtool pcre pcre-devel libxml2 libxml2-devel curl curl-devel httpd-devel zlib-devel gcc-c++ cmake unzip wget openssl openssl-devel -y
wget nginx.org/download/nginx-1.8.0.tar.gz
wget modsecurity.org/tarball/2.9.1/modsecurity-2.9.1…
tar xvzf nginx-1.8.0.tar.gz
tar xvzf modsecurity-2.9.1.tar.gz
cd modsecurity-2.9.1
./configure --enable-standalone-module
make
cd nginx-1.8.0
./configure \
--user=nginx \
--group=nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--add-module=../modsecurity-2.9.1/nginx/modsecurity
make
make install
-----------------------------------------------------------------------------------------------------------

About this tutorial

Quick Notepad Tutorial published this 6:51 video tutorial on November 10, 2017. It has been watched 2,752 times on YouTube.

Duration
6:51
Published
November 10, 2017
Views
2,752
Likes
6

Tags

Share

This tutorial in other languages