P
P
Pista2020-12-03 14:57:08
Nginx
Pista, 2020-12-03 14:57:08

How to set up advanced Nginx logging and analysis in the panel?

Hello, I want to analyze the access logs to the site. Need information on the referrer, server response code and analysis in the control panel, advise a bunch for a beginner
access_log /var/www/logs/domain.ru.access.log;

Referrer is not displayed, what should I add?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2020-12-03
@Pista

Add $http_refererto log_format. By default, the referrer is there, by the way.
https://nginx.org/ru/docs/http/ngx_http_log_module...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question