Re: Add Headers with NGinx and ModSecurity
Christian Folini <[email protected]>
| Newsgroups | gmane.comp.apache.mod-security.user |
|---|---|
| Message-ID | <20200918075111.GB12978@leander> |
On Fri, Sep 18, 2020 at 09:11:11AM +0430, Ehsan Mahdavi wrote: > Hi > > You can use nginx directives to add headers like nginx directive > add_header. Oops. I thought this was not possible, but now I realize I was thinking of the response body. Of course I was wrong. Sorry for the misinformation on my behalf. I'm too much of an Apache person. Christian > > I personally recommend using extra module headers-more. It can be found here > > https://github.com/openresty/headers-more-nginx-module > > On Thu, Sep 17, 2020, 21:37 Mikaël Pirio <[email protected]> > 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) ? > > > > 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/ _______________________________________________ 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/