rweijnen/nginx-with-modsecurity

By rweijnen

Updated 2 days ago

Nginx with ModSecurity, OWASP ruleset and various other modules that I use such as GeoIP2

Image
Networking
Security
Web servers
0

10K+

rweijnen/nginx-with-modsecurity repository overview

NGINX with ModSecurity (for RPi(5) and AMD64)

This Docker image contains a custom-built version of NGINX.

The build uses the latest available mainline version of NGINX and includes the following modules, along with their dependencies:

Components

  • NGINX (as reverse proxy) - Version: 1.31.3
  • ModSecurity - Version: v3.0.16
    • A web application firewall (WAF) for real-time application monitoring, logging, and access control.
    • Includes the OWASP ModSecurity Core Rule Set (CRS) - Version: v4.28.0 for additional security rules.
  • GeoIP2:
    • A module for NGINX that allows you to retrieve the geographical location of the client based on their IP address.
  • Headers More:
    • This module allows you to add, set, or clear any input or output headers for NGINX.
  • Subs Filter Module:
    • A module that enables you to search and replace text in the response body before sending it to the client.

Build Information

  • Build Date: 2026-07-16
  • Alpine Linux Version: 3.24.1

Repository and Contributions

  • The source code and Dockerfile for this image are hosted on GitHub: NGINX with ModSecurity.
  • Feel free to contribute by submitting issues or pull requests.

Tag summary

Content type

Image

Digest

sha256:65983c3ea

Size

82.8 MB

Last updated

2 days ago

docker pull rweijnen/nginx-with-modsecurity:20260715-2305