How To Install nginx-mod-naxsi on Fedora 36

In this tutorial we learn how to install nginx-mod-naxsi in Fedora 36. nginx-mod-naxsi is nginx web application firewall module

Introduction

In this tutorial we learn how to install nginx-mod-naxsi on Fedora 36.

What is nginx-mod-naxsi

naxsi is an nginx module that provides score based Web Application Firewall (WAF) abilities in a highly granular fashion.

We can use yum or dnf to install nginx-mod-naxsi on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install nginx-mod-naxsi.

Install nginx-mod-naxsi on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install nginx-mod-naxsi using dnf by running the following command:

sudo dnf -y install nginx-mod-naxsi

Install nginx-mod-naxsi on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install nginx-mod-naxsi using yum by running the following command:

sudo yum -y install nginx-mod-naxsi

How To Uninstall nginx-mod-naxsi on Fedora 36

To uninstall only the nginx-mod-naxsi package we can use the following command:

sudo dnf remove nginx-mod-naxsi

nginx-mod-naxsi Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/15
/usr/lib/.build-id/15/ce3e8a63e80b935d64d08180b96192ada0458b
/usr/lib64/nginx/modules/ngx_http_naxsi_module.so
/usr/share/doc/nginx-mod-naxsi
/usr/share/doc/nginx-mod-naxsi/README.md
/usr/share/licenses/nginx-mod-naxsi
/usr/share/licenses/nginx-mod-naxsi/LICENSE
/usr/share/nginx/modules/mod-naxsi-web-app-firewall.conf
/usr/share/nginx/naxsi
/usr/share/nginx/naxsi/naxsi_core.rules

References

Summary

In this tutorial we learn how to install nginx-mod-naxsi on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).