Welcome! Log In Create A New Profile

Advanced

nginx - log extra header

June 25, 2010 09:24AM
Добрый день.
Мы стали использовать 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 в лог ?

Спасибо.
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: 65
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