Closed JeffCleverley closed 5 years ago
Hi @JeffCleverley,
I am not sure what exactly are you trying to achieve. However, if you are interested in partially inspect the request you may want to configure your nginx with different hosts: one considering ModSecurity and another one, not considering.
I am wanting to put modsecurity behind caching, as per
I don't use varnish.
I have instead configured Nginx as a reverse proxy with caching up front, and ngxinx with modsec enabled upstream.
Is it possible to only run modsecurity rules when a request skips fastcgi_cache.
When a request is served a static cached file, I'd like it to skip modsec.
I have tried doing something evil and putting modsecurity directives inside ifs, but it isn't allowed.
I really would prefer not to run varnish or nginx as a cached reverse proxy infront of nginx with modsec.
Or am i just being stupid again :D