3

我在一个盒子(192.168.56.102)上使用清漆,在另一个盒子(192.168.56.105)上使用apache。在清漆盒上 - 在 /etc/varnish/default.vcl

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

和 /etc/default/varnish

DAEMON_OPTS="-a :80 \
         -T localhost:6082 \
         -f /etc/varnish/default.vcl \
         -S /etc/varnish/secret \
         -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,3G"

问题 1. Varnish not Caching (MISS)

When i access 192.168.56.102 it MISS cache and goes to apache box.

curl -I http://192.168.56.102  [vernish box]

HTTP/1.1 401 Authorization Required
Server: Apache
WWW-Authenticate: Basic realm="iExplore Development"
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1
X-Pad: avoid browser bug
Date: Tue, 06 Dec 2011 16:01:25 GMT
X-Varnish: 587747945
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS

问题 2.varnish 控制终端在 apache(使用 drupal-pressflow-6)框上没有响应 - varnish admin (/admin/settings/varnish)

  VARNISH CONTROL TERMINAL: 192.168.56.102:6082

  entered VARNISH CONTROL KEY:

  Save configuration

  STATUS: The Varnish control terminal is not responding at 192.168.56.102 on port 6082.

提前致谢

[编辑] - @casperOne - 你能确认你为什么关闭这个问题吗?我没有为我的问题找到任何有效的答案,这对我来说是一种耻辱

4

0 回答 0