Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

How can I create a custom log?

$
0
0
Hello,

Basically I want to create a custom log to write to it if the condition is satisfied within an "if" clause. Example:

location / {
if ($query_string ~ condition) {
custom_log /.../custom_log;
}}

Is this possible? Thanks in advance.

Viewing all articles
Browse latest Browse all 4759

Trending Articles