Phoenix Varnish Cache:ESI标签不删除

时间:2015-06-26 10:47:24

标签: magento varnish varnish-vcl

我在linux ngnix服务器上安装了Varnish Cache 4.3,在Magento上安装了由Varnish Module驱动的PageCache。 这是我的/etc/varnish/default.vcl

backend default {
.host = "127.0.0.1";
.port = "80";
}

这是我的/etc/varnish/default.vcl_3.0

include "vars.vcl";
backend default {
  .host = "127.0.0.1";
  .port = "6081";
}
backend admin {
  .host = "127.0.0.1";
  .port = "6081";
  .first_byte_timeout = 18000s;
  .between_bytes_timeout = 18000s;
}
acl purge {
  "localhost";
  "127.0.0.1";
}
# purge request
if (req.request == "PURGE") {
    if (!client.ip ~ purge) {
        error 405 "Not allowed.";
    }
    ban("obj.http.X-Purge-Host ~ " + req.http.X-Purge-Host + " && obj.http.X-Purge-URL ~ " + req.http.X-Purge-Regex + " && obj.http.Content-Type ~ " + req.http.X-Purge-Content-Type);
    error 200 "Purged.";
}

这是我的DAEMON_OPTS

DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
             -f ${VARNISH_VCL_CONF} \
             -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
             -t ${VARNISH_TTL} \
             -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
             -u varnish -g varnish \
             -S ${VARNISH_SECRET_FILE} \
             -p esi_syntax=0*03 \
             -p shm_reclen=4096 \
             -s ${VARNISH_STORAGE}"

我在Magento Admin中的模块设置

Varnish servers  :  127.0.0.1;192.168.1.19
Server port       : 6081

我的问题是esi标签进来的地方是form_key来的

esi:include src='http://mydesk:6081/varnishcache/getformkey/ this come in form

请查看我的配置文件,并建议我在哪里出错或建议我如何安装Varnish?.....

感谢提前........

0 个答案:

没有答案