K
K
kkoshakk2016-08-04 15:12:12
Nginx
kkoshakk, 2016-08-04 15:12:12

In which section of nginx.conf should I specify access_log and error_log?

In which section or sections of nginx.conf do you need to write logs and what level of logging is better to set?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lindon_cano, 2016-08-05
@kkoshakk

In the one in which it is more convenient for the administrator.
I have my own access / error.log for each server, and in certain cases even for specific locations.
It is more convenient for someone to pile everything into one file for everyone.
So the question is not very correct.

S
sim3x, 2016-08-04
@sim3x

nginx.org/en/docs/http/ngx_http_log_module.html
Context: http, server, location, if in location, limit_except

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question