Ngx_cache_purge not found

Hi there,

I tried to use ngx_cache_purge with the configuration below
location ~ /purge(/.*) {
allow 127.0.0.1;
deny all;
proxy_cache_purge one backend$request_uri;
}

location ~* ^.+\.(css|js)$ {
    proxy_pass       http://backend;
    proxy_cache       two;
    proxy_cache_key     backend$request_uri;
    proxy_cache_valid    200 1h;
    proxy_cache_valid    404 1m;

Then when I tried to open by browser with url
http://myurl/purge/style.css, it’s saying Page not Found (404)

Is there any something I’ve missed?

On 04/10/13 12:04, Indo P. wrote:

            allow 127.0.0.1;
            deny    all;

the url will only work if requested from the server itself…

I tried to remove it already.


From: Richard K. [email protected]
To: [email protected]
Sent: Friday, October 4, 2013 6:20 PM
Subject: Re: ngx_cache_purge not found

On 04/10/13 12:04, Indo P. wrote:

    allow  127.0.0.1;
   deny  all;

the url will only work if requested from the server itself…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs