Welcome! Log In Create A New Profile

Advanced

Re: How to patch and/or upgrade Nginx from source in production environment?

PGNet Dev
October 13, 2022 01:56PM
> My primary driving reason for considering the deployment of Nginx from source is to use ModSecurity WAF with Nginx. I'm under the impression that it's much easier to use ModSecurity with Nginx when compiled from source.

If ModSecurity is the issue ...

There are old instructions easily found ON the nginx.com site,

https://www.nginx.com/blog/compiling-and-installing-modsecurity-for-open-source-nginx/

for building it as a dynamic module, which can be separately built and added to a packaged nginx build. not required to rebuild/repackage/reinstall nginx itself. of course, you need to match source version to your pkg'd version.

but note, NGINX is dumping ... er ... Transitioning to End-of-Life ... ModSecurity support,

F5 NGINX ModSecurity WAF Is Transitioning to End-of-Life
https://www.nginx.com/blog/f5-nginx-modsecurity-waf-transitioning-to-eol/

and that ModSecurity itself is on its way out,

Talking about ModSecurity and the new Coraza WAF
https://coreruleset.org/20211222/talking-about-modsecurity-and-the-new-coraza-waf/

but not quite dead yet. in the interim, there's ModSecurity v3/master

https://github.com/SpiderLabs/ModSecurity

, with a new architecture, and a specific Nginx connector

https://github.com/SpiderLabs/ModSecurity-nginx

which can, similarly to the above, be built/added as a dynamic module, and still works well enough.

and here's a useful tutorial for setting up Nginx + LibModsecurity

Configure LibModsecurity with Nginx on CentOS 8
https://kifarunix.com/configure-libmodsecurity-with-nginx-on-centos-8/


_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

How to patch and/or upgrade Nginx from source in production environment?

edflecko October 13, 2022 11:42AM

Re: How to patch and/or upgrade Nginx from source in production environment?

PGNet Dev October 13, 2022 11:50AM

Re: How to patch and/or upgrade Nginx from source in production environment?

edflecko October 13, 2022 12:04PM

Re: How to patch and/or upgrade Nginx from source in production environment?

Thomas Ward October 13, 2022 12:12PM

Re: How to patch and/or upgrade Nginx from source in production environment?

PGNet Dev October 13, 2022 12:20PM

Re: How to patch and/or upgrade Nginx from source in production environment?

edflecko October 13, 2022 12:24PM

Re: How to patch and/or upgrade Nginx from source in production environment?

PGNet Dev October 13, 2022 01:12PM

Re: How to patch and/or upgrade Nginx from source in production environment?

edflecko October 13, 2022 01:40PM

Re: How to patch and/or upgrade Nginx from source in production environment?

PGNet Dev October 13, 2022 01:56PM

Re: How to patch and/or upgrade Nginx from source in production environment?

edflecko October 13, 2022 04:22PM

Re: How to patch and/or upgrade Nginx from source in production environment?

Sergey A. Osokin October 13, 2022 12:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready