Welcome! Log In Create A New Profile

Advanced

Proxy Cache 502 Problem

October 01, 2010 05:32AM
We´re trying to cache all of our JS files using Proxy Cache from HttpProxyModule but somehow we always get confused responses from the server, sometimes we get a 502 error and sometimes we get the cached JS files... heres the config:


proxy_temp_path /tmp/proxy/proxy_temp_path;
proxy_cache_path /tmp/proxy/proxy_cache_path levels=1:2 keys_zone=cache_one:10m inactive=1d max_size=5m;

location ~ .*\.(js)$
{
proxy_cache cache_one;
proxy_pass http://localhost:8080;
proxy_cache_valid 200 1h;
proxy_cache_use_stale error timeout invalid_header;
}

Anyone who can help out?
Subject Author Posted

Proxy Cache 502 Problem

gsyi October 01, 2010 05:32AM

Re: Proxy Cache 502 Problem

gsyi October 02, 2010 01:11AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 35
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready