GithubHelp home page GithubHelp logo

brucewu16899 / nginx_modsecurity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from markri/nginx_modsecurity

0.0 2.0 0.0 5.54 MB

Fork from EPEL nginx package, this package adds modsecurity

HTML 62.76% Shell 3.18% Roff 25.44% Nginx 8.62%

nginx_modsecurity's Introduction

Nginx from EPEL 7 with modsecurity

For the lazy ones

Download the 64 bits RPM from this repository nginx-1.6.3-8.el7.centos_modsec_2.9.1.x86_64.rpm and install with

rpm -ivh nginx-1.6.3-8.el7.centos_modsec_2.9.1.x86_64.rpm

DIY

How trustworthy is a repository from someone you don't know? This is why I'll explain the steps of creating an RPM for your self. So you'll know for sure that everything is clean :-)

Download sources

How this repository is created (in Gnome you may find using file-roller a bit easier instead of using rpm2cpio):

wget https://dl.fedoraproject.org/pub/epel/7/SRPMS/n/nginx-1.6.3-8.el7.src.rpm
mkdir nginx-1.6.3
rpm2cpio ./nginx-1.6.3-8.el7.src.rpm | cpio -idmv
cd nginx-1.6.3
wget https://www.modsecurity.org/tarball/2.9.1/modsecurity-2.9.1.tar.gz

Patch

From this point I added a default mod_security.conf, and changed the nginx.spec file. Check commit log for the actual changes history of nginx.spec and see if the diffs are pleasing enough

Build

In your extracted nginx-1.6.3 folder execute following

rpmdev-setuptree
cp * ~/rpmbuild/SOURCES/
rm ~/rpmbuild/SOURCES/nginx.spec
cp nginx.spec ~/rpmbuild/SPECS
rpmbuild -ba SPECS/nginx.spec 

For CentOS 7 dependencies (other OS-es unknown) you will need:

yum install geoip-devel gd-devel gperftools-devel perl-devel perl curl-devel lua-devel perl-ExtUtils-Embed

Install

For a 64-bit environment run (other arch will lead to other RPM name)

rpm -ivh nginx-1.6.3-8.el7.centos_modsec_2.9.1.x86_64.rpm

nginx_modsecurity's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.