简体   繁体   English

仅使用1 IP的清漆缓存?

[英]Varnish cache with only 1 IP?

I'm starting my adventure with the Varnish Cache. 我从清漆缓存开始冒险。 Still have some questions about it, I couldn't find the straight answer. 仍然对此有一些疑问,我找不到直接的答案。

Can I use Varnish cache server v.3.0.6 with eg. 我可以将Varnish缓存服务器v.3.0.6与例如。 Plesk web hosting control panel, and have some domain (virtual hosts) with only 1 IP? Plesk虚拟主机控制面板,是否具有仅具有1个IP的某些域(虚拟主机)?

Please advise 请指教

If Plesk web hosting allows you to setup different ports on the same ip you can use varnish as frontend on port 80 or 443(https) and let varnish communicate to a different port on the same server to retrieve the webpages. 如果Plesk虚拟主机允许您在同一ip上设置不同的端口,则可以将varnish用作端口80或443(https)上的前端,并让varnish与同一服务器上的其他端口进行通信以检索网页。

in your vcl you can add the following host 在您的vcl中,您可以添加以下主机

backend website {
    .host = "127.0.0.1";
    .port = "8080";
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM