logi

Alexey Beschiokov proforg at maloletka.ru
Thu Jul 14 16:19:37 MSD 2005


On Thu, Jul 14, 2005 at 03:33:34PM +0400, Rasuk Evgeniy wrote:
> Глюки  
> Имею строчку 
>      log_format main      '   %addr  {%proxy_add_x_forwarded_for}v   %time  %request  %status   %Refere  %User-Agent  %gzip_ratio ';
> 
> Дает ошибку  
> 
> 
> # ./nginx
> 2005/07/14 15:31:47 [emerg] 39563#0: invalid parameter "%proxy_add_x_forwarded_for}v   %time  %request  %status   %Refere  %User-Agent  %gzip_ratio " in /opt/wwwfront/conf/nginx.conf:17

естественно
%{proxy_add_x_forwarded_for}v 
а не 
{%proxy_add_x_forwarded_for}v

	Алексей Бещёков 
> 
> -----Original Message-----
> From: Majordomo Pseudo User [mailto:majordom at ontico.ru] On Behalf Of Igor Sysoev
> Sent: Thursday, July 14, 2005 2:59 PM
> To: nginx-ru at sysoev.ru
> Subject: Re: logi
> 
> On Thu, 14 Jul 2005, Rasuk Evgeniy wrote:
> 
> > Хочется в логах видеть информацию типа %host 
> > %proxy_add_x_forwarded_for
> >
> > - этот функцтонал реализован ? Если да то какой у него синтаксис ?
> 
> %{host}v
> %{proxy_add_x_forwarded_for}v
> 
> 
> Игорь Сысоев
> http://sysoev.ru
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2148 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20050714/4a04e326/attachment.bin>


More information about the nginx-ru mailing list