wargio / naxsi

NAXSI is an open-source, high performance, low rules maintenance WAF for NGINX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

separate log

rickygm opened this issue · comments

Hi wargio , sorry to open a thread about this, but I see an addition in the github about separating the naxsi logs, do you have any example how to do it inside the naxsi/nginx settings .

where exactly?

it should be like NaxsiLogFile "/path/to/file.log"; and it can go everywhere i think

could go inside the naxsi.rules file?

guess so, according to the code it can go in NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LMT_CONF

let me try and let you know, I was thinking and I don't know if you like this idea, why don't you bring the naxsi wiki and let's feed it.

what do you mean?

put the naxsi/nbs-system wiki in your naxsi fork, and keep the wiki up to date, this separate log in naxsi is not in the wiki.

ah yeah. i was more thinking in having a wiki book or similar

let me know what you think, and I did the tests by adding naxsi.rules inside.

NaxsiLogFile "/var/log/nginx/naxsi.log";

and it works.