[prev in list] [next in list] [prev in thread] [next in thread]
List: nginx
Subject: Re: Apache vs. Nginx LogFormat
From: Igor Sysoev <is () rambler-co ! ru>
Date: 2007-04-05 7:17:25
Message-ID: 20070405071725.GB77151 () rambler-co ! ru
[Download RAW message or body]
On Thu, Apr 05, 2007 at 07:51:28AM +0200, Martin Minka wrote:
> could somebody help me to rewrite Apache LogFormat command to Nginx ?
>
> the Apache format is:
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"
> \"%{cookie}i\" %v" combined
log_format cookie '$remote_addr - $remote_user '
'[$time_local] "$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$http_cookie" "$server_name"'
;
Some comments:
*) you could not name your format "combined" because there's already
predefined "combined" format compatible with Apache's one.
*) there's no %l in nginx: it useless in modern Internet and Apache
disables it by default: "IdentityCheck off".
--
Igor Sysoev
http://sysoev.ru/en/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic