在nginx中加入ngx_cache_purge模块,但是如何使用呢?
关于nginx.conf中purge的配置如下:#设置只允许指定的IP或IP段才可以清除URL缓存。
location ~ /purge(/.*){
allow 127.0.0.1;
allow 192.168.0.0/16;
proxy_cache_purge cache_one $host$1$is_args$args;
}
现在我访问http://192.168.131.60:81/index.html,在缓存目录下/opt/proxy_cache_path有数据了。
现在我想通过purge删除缓存,怎么用呢?
请教各位了。。。 访问http://192.168.131.60:81/purge/index.html
返回404的错误。。。 我和你一样的问题。HTML的缓存如何通过purge 删除?
页:
[1]