- lavps2010-08-08注册会员1202

装了诡谲那个一键nginx for directadmin的包,怎么发现访客看到的一直都是缓存内容。怎么办啊。
下面这段代码是其中一个域名绑定的参数,那个purge是删除动作,我在张宴的博客上看过,但是我的程序是drupal,怎么清除缓存啊。。。哪位大大帮忙看看,是要改drupal模板还是改什么。squid又没玩过,不熟悉。。。这个怎么玩啊。- location / {- if (-f $request_filename) {
- expires 1d;
- add_header X-Cache "HIT from Filesystem ";
- set $no_cache 1;
- break;
- }
- if ($query_string ~ ".+") {
- return 405;
- }
- if ($request_method !~ ^(GET|HEAD)$ ) {
- rewrite ^(.*)$ /purge$1 last;
- }
- error_page 405 = @backend;
- add_header X-Cache "HIT from Cache";
- proxy_pass http://127.0.0.1:81;
- include proxy.inc;
- include cache.inc;
- }
- location ~ .*\.(php|jsp|cgi|pl|py)?$ {
- proxy_pass http://127.0.0.1:81;
- include proxy.inc;
- }
- location @backend {
- proxy_pass http://127.0.0.1:81;
- include proxy.inc;
- }
- location ~ /purge(/.*) {
- allow 127.0.0.1;
- allow 192.168.0.0/16;
- deny all;
- error_page 405 =200 /purge$1;
- proxy_cache_purge global $host$1$is_args$args;
- }
- location ~ /\.ht {
- deny all;
- }复制代码