我在Ubuntu 16.04上使用magento Varnish配置时遇到问题 我的网站上收到502错误。我的配置在下面..有人可以帮助我吗?
/etc/apache2/ports.conf:
Listen 8080
<IfModule ssl_module>
Listen 7081
</IfModule>
<IfModule mod_gnutls.c>
Listen 7081
</IfModule>
/etc/apache2/sites-enabled/000-default.conf:
<VirtualHost *:8080>
/etc/systemd/system/varnish.service:
Type=simple
LimitNOFILE=131072
LimitMEMLOCK=82000
ExecStart=/usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secr
ExecReload=/usr/share/varnish/reload-vcl
ProtectSystem=full
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
/etc/varnish/default.vcl:
backend default {
.host = "127.0.0.1";
.port = "8080";
}
的/ etc /默认/清漆
DAEMON_OPTS="-a :80 \
-T localhost:6082 \
-f /etc/varnish/default.vcl \
-S /etc/varnish/secret \
-s malloc,256m"