hwlinux 发表于 2012-02-09 15:37

Nginx作为代理,清楚cache报404

如题。
ngx_purge_cache 模块。
nginx 1.0.6
purge-1.3/1.5 两个都用过了

配置如下。
      location ~ /purge(/.*)
      {
               allow            127.0.0.1;
               allow            192.168.1.0/24;
               deny             all;
               proxy_cache_purge    cache_one   $host$1$is_args$args;
      }
页: [1]
查看完整版本: Nginx作为代理,清楚cache报404