Welcome! Log In Create A New Profile

Advanced

Re: nginx - log extra header

June 25, 2010 01:21PM
Борис, добрый день.
Я верно понял ?

[quote]
log_format upstream '$remote_addr - $remote_user - [b]$http_true_client_ip[/b] [$time_local] '
'"$request" $status $body_bytes_sent '
'$upstream_response_time '
'"$http_referer" "$http_user_agent"';
[/quote]
этого достаточно ? в логах не вижу нужного IP.

с прокси ведь немного иначе вроде:
[code]
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
[/code]

Мне хотелось бы видеть и IP Akamai и IP клиента по возможности, поэтому 1-ый вариант для меня больше подходит.
Subject Author Posted

nginx - log extra header

wmiadmin June 25, 2010 09:24AM

Re: nginx - log extra header

Boris Dolgov June 25, 2010 09:28AM

Re: nginx - log extra header

Boris Dolgov June 25, 2010 09:34AM

Re: nginx - log extra header

wmiadmin June 25, 2010 01:21PM

Re: nginx - log extra header

wmiadmin June 25, 2010 01:24PM

Re: nginx - log extra header

wmiadmin June 25, 2010 01:37PM

Re: nginx - log extra header

wmiadmin June 25, 2010 01:49PM

Re: nginx - log extra header

wmiadmin June 25, 2010 04:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 51
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready