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: proxy store


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: proxy store
  • From: "alex_ru" <nginx-forum@xxxxxxxx>
  • Date: Wed, 14 Mar 2012 10:05:46 -0400 (EDT)
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tigger.jlkhosting.com; s=x; h=From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=VOr/jhOJlnmx/f5xNDL0KxLXzLOoA8WtXGn3kRLHGTc=; b=CVRx390XYtxxknVJ/SDpJlMeOfft/TdzoRLMQEh4VpUvKRQ8CCFl9hvGtqaVnfa0vcyABA5hwLwOVj0LZBdcEpnshnVBY/kR2psDtiI+tK7q+Ntx0goWec/xO8jcN31u;
  • In-reply-to: <201203141359.28940.ne@vbart.ru>
  • References: <201203141359.28940.ne@vbart.ru>

   :


location ~ ^/preview/([cira])/(.+) {
set $oper $1;

set $remn $2;

# Proxy
proxy_pass http://127.0.0.1:81/$oper/$remn;
proxy_intercept_errors on;
error_page 404 = /preview/404;

proxy_store on;
proxy_store_access user:rw group:rw all:r;
proxy_temp_path /temp;
proxy_set_header If-Modified-Since "";

expires max;

root /runtime/cache;
}

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

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


 




Copyright © Lexa Software, 1996-2009.