nginx modsecurity on Debian 8

Anoop Alias anoopalias01 at gmail.com
Wed Dec 23 12:34:24 UTC 2015


nginx -V will show configure arguments. You need to add mod_sec at the
beginning of whatever is in there.


On Wed, Dec 23, 2015 at 5:51 PM, Thierry <lenaigst at maelenn.org> wrote:

> Hi,
>
> A bit lost ...
> I know nothing concerning nginx, I am more confortable with Apache2.
> I am using an email server who is using nginx on debian 8.
> I would need to install modsecurity as module.
> I have understood that I need to compile from the working directory of
> nginx ....
>
> ./configure --add-module=/opt/ModSecurity-nginx
>
> But how to deal with it if nginx as been installed from binary (debian
> package) ?
>
> I have followed these instructions:
>
>  $ sudo dnf install gcc-c++ flex bison curl-devel curl yajl yajl-devel
> GeoIP-devel doxygen
> $ cd /opt/
> $ git clone https://github.com/SpiderLabs/ModSecurity
> $ cd ModSecurity
> $ git checkout libmodsecurity
> $ sh build.sh
> $ ./configure
> $ make
> $ make install
> $ cd /opt/
> $ git clone https://github.com/SpiderLabs/ModSecurity-nginx
> $ cd /opt/Modsecurity-nginx
> $ git checkout experimental
> $ cd /opt/
> *******************************************************************
> $ wget http://nginx.org/download/nginx-1.9.2.tar.gz
> $ tar -xvzf nginx-1.9.2.tar.gz
> $ yum install zlib-devel
> *******************************************************************
> $ ./configure --add-module=/opt/ModSecurity-nginx
>
>
>
> Everything went fine until the last ./configure ....
> I  didn't  apply  what's  between  " *** " because my nginx server is
> already installed and working.
>
> Any ideas ?
>
> Thx
> --
> Cordialement,
>  Thierry                          e-mail : lenaigst at maelenn.org
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



-- 
*Anoop P Alias*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20151223/c06386a5/attachment.html>


More information about the nginx mailing list