Forum: NGINX ngx_cache_purge not found

2608d3cce53c362940168888952307fb?d=identicon&s=25 Indo Php (Guest)
on 2013-10-04 13:09
(Received via mailing list)
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?
Ebfa54c92a50798dfdbbdb4e28ed1f29?d=identicon&s=25 Richard Kearsley (Guest)
on 2013-10-04 13:21
(Received via mailing list)
On 04/10/13 12:04, Indo Php wrote:
>                 allow 127.0.0.1;
>                 deny    all;

the url will only work if requested from the server itself...
2608d3cce53c362940168888952307fb?d=identicon&s=25 Indo Php (Guest)
on 2013-10-04 13:34
(Received via mailing list)
I tried to remove it already.



________________________________
 From: Richard Kearsley <richard@kearsley.me>
To: nginx@nginx.org
Sent: Friday, October 4, 2013 6:20 PM
Subject: Re: ngx_cache_purge not found



On 04/10/13 12:04, Indo Php wrote:

        allow  127.0.0.1;
>        deny  all;
the url will only work if requested from the server itself...
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.