Forum: NGINX ngx_cache_purge not found

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
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...
This topic is locked and can not be replied to.