ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nginx - log extra header


  • To: nginx-ru@xxxxxxxxx
  • Subject: nginx - log extra header
  • From: "wmiadmin" <nginx-forum@xxxxxxxx>
  • Date: Fri, 25 Jun 2010 09:24:18 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=tvrRXgM4YW7D+vGaXhYZvWpZLdaB+aH7y/pjOgddMko=; b=innzX21VdvMYPoqJP/zcTWmfQwVV0NRlmmuHonMONva2ZkWGjmspQmrrNwLEXvF7OYQH+ItMYbnTMIPPI/ooav+g804nmxv1Qxrmejipz3DPIOWGCKcuo0vijtl3nz2x;

Добрый день.
Мы стали использовать Akamai для отдачи
статики.
Схема такая: Client -- Akamai -- Site
Клиенту нужен файл  - он попадает на Akamai,
Akamia идёт на Site, забирает файл и отдаёт
клиенту.
Я в логах вижу лишь обращения Akamai, а не
клиента. Но Akamai может дать мне IP
клиента.
[quote]
- True Client IP Header
This is an advanced option. This can be useful if your application
processes
incoming requests to obtain the client IP address. When your application
is
delivered through Akamai, the end-user client IP data may not be
available
in an X-Forwarded-For header.
The True Client IP option provides for creating a custom header,
?True-Client-
IP,? the value of which is the true client IP address.
If desired, you can create a header with a different custom name to
contain
the same client IP address information as the X-Forwarded-For header
did
before Akamai processing. Of course, the name you create should not be
the
same as well-known HTTP or other Akamai headers.
[/quote]

Как я могу в свой access log записать этот IP,
т.е. как мне записать этот заголовок True
Client IP Header в лог ?

Спасибо.

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,102240,102240#msg-102240


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.