A
A
Andrey Korvyakov2015-06-01 17:47:59
Nginx
Andrey Korvyakov, 2015-06-01 17:47:59

How to write in nginx logs the ip TO which the request came?

Good day!
Maybe someone knows how to write in a separate field in the ip logs the address to which the request came from the client?
There are several ips on the server, the traffic on which is divided depending on the source, but the logs are divided by server_name.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2015-06-01
@LNShadow

$server_addr

A
AntonMZ, 2015-06-01
@AntonMZ

Requests go to the resource name http://site_name.ru or still to ip addresses?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question