【发布时间】:2016-04-03 17:39:31
【问题描述】:
我在 debian 服务器上使用 apache2 和 varnish,但我有 2 个网站一个使用端口 80 和其他 443,但我不知道将其与 varnish 一起使用
如何将端口 80 和 443 与清漆一起使用? 谢谢你
/etc/default/清漆
DAEMON_OPTS="-a :80 \
-T localhost:6082 \
-f /etc/varnish/default.vcl \
-S /etc/varnish/secret \
-s malloc,256m"
/etc/varnish/default.vcl
backend default {
.host = "127.0.0.1";
.port = "8080";
}
和apache2
NameVirtualHost 127.0.0.1:8080
Listen 127.0.0.1:8080
<VirtualHost 127.0.0.1:8080>
【问题讨论】:
-
不是真正的编程问题;试试serverfault.com/questions 或superuser.com/questions ...
标签: linux apache debian varnish