Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
время хранения локальной копии статики
- To: nginx-ru@xxxxxxxxx
- Subject: время хранения локальной копии статики
- From: "Dmitry Veselov" <nginx-forum@xxxxxxxx>
- Date: Wed, 29 Sep 2010 10:32:52 -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=yF1WccPi7yfxI7KRFAz5p53FUzt04QzpR07rmH9Z/fg=; b=V8SB0SFvEI0Z2Q1vvml98kMJsDpOYJRhICgTN4eHYE+D/Tk4/2wjM2eLEwUBg6D4mdqsdFb4vKkAxiAajIMmwXIcdGDmOTbcSo3y+/icFdeowXkfOGNbBA8ZBkiJCCpT;
как правильно указать?
[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://backend;
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]
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,135345,135345#msg-135345
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|