ПРОЕКТЫ 


  АРХИВ 


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]

expires


  • To: nginx-ru@xxxxxxxxx
  • Subject: expires
  • From: "Dmitry Veselov" <nginx-forum@xxxxxxxx>
  • Date: Wed, 29 Sep 2010 10:08:31 -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=K/dwPbgwpUhVJBLOQ8gNtKRzgj3FOG3MT+10ls5Qv9k=; b=oJTPoaiQg8JfeCn2au4ERI6NR1Yc5G2iGwIPQTsgDpBK/nErjOZgXTBkdTXb5EObVAJQ00Lb8JTlqNu0KK22NK/BuBPsryXAOZ5jWQWm+dv2hQXx77JDrOS9brOaqjUe;

почему может не работать?
[code]
    location ~* \/img\/[^/]*\.(jpg|jpeg|gif|png)$ {
        root /var/nginx/$server_name;
#       expires  max;
        expires  1m;
        open_file_cache_errors  off;
        error_page 404 = @fetch;
        access_log              /var/log/nginx/domain.com.access.log;
        error_log               /var/log/nginx/domain.com.error.log
error;
    }
    location @fetch {
        internal;

        proxy_pass              http://back_end;
        proxy_store             on;
        access_log              /var/log/nginx/domain.com.access.log;
        error_log               /var/log/nginx/domain.com.error.log
error;
        proxy_store_access      user:rw  group:rw  all:r;
        proxy_temp_path         /var/nginx/proxy_temp;
        proxy_set_header        Host             $host;
        proxy_set_header        X-Real-IP        $remote_addr;
#       proxy_set_header        If-Modified-Since "";
        root /var/nginx/$server_name;
    }

[/code]

и насколько оправдано применение access_log
и error_log в каждом location?

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


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


 




Copyright © Lexa Software, 1996-2009.