0

I want to start using mod_security for Nginx. However, I have read the official doc and something got my atention:

https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#installation-for-nginx

The example configuration is:

location / {
       ModSecurityEnabled on;
       ModSecurityConfig modsecurity.conf;
       proxy_pass http://localhost:8011;
       proxy_read_timeout 180s;
   }

And it explains:

This configures ModSecurity as an Nginx request handler. The updated request flow is now: request -> modsecurity handler -> backend You will need to modify the @backend definition to point to your correct back-end web application that Nginx is proxying to.

This assumes that Nginx is used as a proxy to a backend server. My question is, can mod_security & Nginx be used WITHOUT a backend server? For example, with PHP-FPM for PHP apps or Passenger for Ruby On Rails.

Thanks a lot, regards

arg
  • 13
  • 1
  • 4

0 Answers0