Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How Do I Install Mod_Security On Nginx

mujmuj Member

Its says something about Compiling?

Comments

  • awsonawson Member
    edited July 2013
    sudo apt-get install build-essential git libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev automake libtool
    git clone https://github.com/SpiderLabs/ModSecurity.git mod_security
    cd mod_security
    ./autogen.sh
    ./configure --enable-standalone-module
    make
    cd ..
    wget http://nginx.org/download/nginx-1.4.2.tar.gz
    tar xvf nginx-1.4.2.tar.gz
    cd nginx-1.4.2
    ./configure --add-module=../mod_security/nginx/modsecurity
    make
    sudo make install
    
  • SplitIceSplitIce Member, Host Rep

    All nginx modules need to be compiled (Tengine has DSOs but its a fork).

    @awson has made it easy, although if on debian you may want to include the debian paths in the compile command.

  • mujmuj Member
    edited July 2013

    Thanks alot for your help. But it keeps coming up with this error:
    configure: error: couldn't find APXS

    http://pastebin.com/gKDYcRsS

  • tuxtux Veteran

    Do little bit googling

Sign In or Register to comment.