Welcome! Log In Create A New Profile

Advanced

ngx_cache_purge not found

Indo Php
October 04, 2013 07:10AM
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?_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

ngx_cache_purge not found

Indo Php October 04, 2013 07:10AM

Re: ngx_cache_purge not found

Richard Kearsley October 04, 2013 07:22AM

Re: ngx_cache_purge not found

Indo Php October 04, 2013 07:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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