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]

Re: if location access_log.


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: if location access_log.
  • From: Serg Senko <kerncore@xxxxxxxxx>
  • Date: Thu, 7 Apr 2011 13:51:50 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=FJ0J1SLVLKb3n2rWS9NObWCu5kMIMi5YmGsc2QBbTEQ=; b=YBwttvAl0AzhsK3ULvBWpQdoIK2v45hFLdLWQ88NgFKVUgh46zvKrG+d2SC7sY01w5 Tjx1k9A0Nx3OyZmfl4gmN1pbAUf7bNXrvPIe9w/FisnNtFQsdoEMVQ6XvsmbngVPyWOh RLMjrSOpdKH2xOuUaVZZf9o8o69Ev72tEWmJ8=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QrDfPkA80C46q1jTqANnt9N31u7PEW2NjnlZnkUY57gtxoa/Qun2ADzHkwimVZGA7t iUYDi9IGt+3FYBzOvJGtKa2tnSXuZ9vkxObNB4VtsbBxeMHk60WpVZlzkTC7McZHaOwK 0kGhxexb4b+6+RqhJE99WUpg10vXA4mEcMHHM=
  • In-reply-to: <20110406120250.GC49113@xxxxxxxxx>
  • References: <BANLkTi=s5fOsC2Tug7RgNsLR0pRyPKQE4Q@xxxxxxxxxxxxxx> <20110406120250.GC49113@xxxxxxxxx>

, , If
if ?

location / {
include conf/inc/rewrite.rules;
root /tmpfs;
expires 24h;
try_files $uri $uri/@fetch;

location ~* nc_.+\.(js|css)$ {
root /tmpfs;
try_files $uri $uri/@fetch;
expires 0;
}


if ($http_user_agent ~ "^(Yandexbot|Googlebot)") {
access_log /usr/local/nginx/logs/seo.log;
}

}


2011/4/6 Igor Sysoev <igor@xxxxxxxxx>
On Wed, Apr 06, 2011 at 01:56:48PM +0200, Serg Senko wrote:
>
>
> .
> nginx version: nginx/0.8.53
>
> location'
>
> if ($http_user_agent ~ "^(YandexBot|Googlebot)") {
> access_log /usr/local/nginx/logs/seo.log;
> }
>
>
> http {
>
>
>
> access_log /usr/local/nginx/logs/access.log;
>
>
> SEO ,
> .
>
> ?

, , ģ ݣ if.


--
Igor Sysoev
http://sysoev.ru/en/

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



--
ttyv0 "/usr/libexec/gmail Pc" webcons on secure

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


 




Copyright © Lexa Software, 1996-2009.