Filtering query on Nginx

N.Khalifa asked:

Can I store a specific query in access_log file by filtering with an expression?
For example I want to deny storing queries related to and then reject it ?

Best regards,


My answer:

You can set access_log off; inside a location. It will override the access_log setting at a higher level, and stop logging for any requests that match that location.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.