Welcome! Log In Create A New Profile

Advanced

Re: Cache as failover

Kruglov Eugenie
December 21, 2009 06:46AM
proxy_ignore_headers "Cache-Control" "Expires";
proxy_hide_header 'Set-Cookie';
proxy_cache_key
"$request_method|$http_if_modified_since|$http_if_none_match|$host|$request_uri";
proxy_cache_valid 200 302 301 304 1m;
proxy_cache_valid any 0m;
proxy_cache_use_stale error timeout invalid_header http_500
http_502 http_503 http_504;
proxy_cache_path cache/ levels=2:2 keys_zone=cache:256m inactive=7d
max_size=65536m;
server {
server_name ...;
location / {
proxy_pass http://...;
proxy_cache cache;
}
}

proxy_cache_use_stale: cached content will return instead of proxying in
case of 502/503/504 errors.


On Mon, Dec 21, 2009 at 2:22 PM, mfeldheim <nginx-forum@nginx.us> wrote:

> Any ideas? Could proxy_store (
> http://wiki.nginx.org/NginxHttpProxyModule#proxy_store ) help me in that
> case?
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,31268,32363#msg-32363
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



--
Faithfully yours, Eugenie
ICQ #701217
GTalk ekruglov@gmail.com
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Cache as failover

mfeldheim December 17, 2009 09:38AM

Re: Cache as failover

mfeldheim December 21, 2009 06:22AM

Re: Cache as failover

Kruglov Eugenie December 21, 2009 06:46AM

Re: Cache as failover

mfeldheim December 21, 2009 01:11PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 241
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready