Re: Add Headers with NGinx and ModSecurity

Christian Folini <[email protected]>
Newsgroups gmane.comp.apache.mod-security.user
Message-ID <20200917174954.GB12317@leander>
On Thu, Sep 17, 2020 at 06:56:26PM +0200, Mikaël Pirio wrote:
> Hello,
> 
> I use libModSecurity 3.0.3 and I would like to know if we can add responses
> headers (with nginx) like we can do with Apache (use `setenv` in rule and
> use this env variable in Apache config) ?

Unfortunately not. NGINX does not even let ModSec inspect the response,
let alone manipulate it. It's an architecture decision with the webserver.

Christian

> 
> Thanks,


> _______________________________________________
> mod-security-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mod-security-users
> Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs:
> http://www.modsecurity.org/projects/commercial/rules/
> http://www.modsecurity.org/projects/commercial/support/



_______________________________________________
mod-security-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mod-security-users
Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs:
http://www.modsecurity.org/projects/commercial/rules/
http://www.modsecurity.org/projects/commercial/support/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.