Welcome! Log In Create A New Profile

Advanced

proxy_cache does not work

This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
May 28, 2009 03:27AM
Hello,

I am running nginx 0.7.57 on FreeBSD 7.1 64 bit

I have added following lines to http config:

proxy_cache_path /home/nginx/cache levels=1:2 keys_zone=one:10m max_size=200m;
proxy_temp_path /home/nginx/temp;

and following in server location:

location /site/search {
proxy_pass http://backend;
proxy_cache one;
proxy_cache_key backend$request_uri;
proxy_cache_valid 1m;
}

However, when I reload config and try accessing website, nothing is being put into cache folders.

Is something obviously wrong in my config and if not, what are the ways to debug why proxy cache does not work? (i have checked permissions etc. already)
Subject Author Posted

proxy_cache does not work

Nime May 28, 2009 03:27AM

Re: proxy_cache does not work

Igor Sysoev May 28, 2009 05:33AM

Re: proxy_cache does not work

Nime May 28, 2009 01:45PM



Online Users

Guests: 244
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready