Welcome! Log In Create A New Profile

Advanced

Purging proxy cache error: 404

Posted by piggy 
Purging proxy cache error: 404
June 16, 2010 09:43AM
My English is not good and please forgive my bad grammer.

I want only .jpg and .gif be cached, so I wrote:

location ~ .*\.(jpg|gif)$
{
proxy_cache cache1;
proxy_cache_valid 200 304 15m;
proxy_cache_key $host$uri$is_args$args;
proxy_pass http://backend;
}

location /
{
proxy_pass http://backend;
}

and here comes a problem: you can't purge any more, browser show: 404

And, how can I don't cache a path-like url ? i.e., http://www.test.com/ or http://www.test.com/path/

Help pls!
Re: Purging proxy cache error: 404
June 17, 2010 09:13AM
Sorry, this has been resolved by Piotr Sikora. Thanks a lot.

see http://forum.nginx.org/read.php?2,39564
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 307
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