如何为远程共享主机设置 Varnish Cache 中的后端?
我想使用我的服务器(安装了 Varnished 的位置)来缓存远程 Web 托管
Default.vcl
backend default {
.host = "shavrea.com";
.port = "80";
}
的网页,如果这样写,不起作用,请返回给我错误:
Site Temporarily Unavailable
We apologize for the inconvenience. Please contact the webmaster/ tech support immediately to have them rectify this.
error id: "bad_httpd_conf"
这是因为该后端位于共享服务器上。如何解决这个问题?
I want to use my server (where it's installed Varnished) to cache webpage of a remote web hosting
Default.vcl
backend default {
.host = "shavrea.com";
.port = "80";
}
If a write this, doesn't work and return me this error:
Site Temporarily Unavailable
We apologize for the inconvenience. Please contact the webmaster/ tech support immediately to have them rectify this.
error id: "bad_httpd_conf"
This is because that backend is on a shared server. How to resolve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试显式设置主机标头。
try to explicitly set the Host header.