谢谢你看这个。
我有一个Magento2.1.8网站,它将运行在亚马逊的EC2与这个https://aws.amazon.com/marketplace/pp/B007OUYR4Y亚马逊AMI。
我已经优化了Magento 2网站上的一切,但没有得到适当的结果。
我尝试过使用Varnish缓存,但它不适用于HTTPS。
任何人都有一个想法,如何使用清漆与HTTPS优化网站的速度。
发布于 2017-09-08 08:20:13
清漆缓存做点说HTTPS本土化。您将需要一个SSL终止程序,如搭便车、HAProxy等,部署在Varnish前面,理想情况下使用代理协议。
发布于 2021-06-25 07:04:00
在我的设置中,我使用NGINX作为代理来处理http和https请求,然后使用Varnish作为后端,以便NGINX处理所有SSL证书。
下面是我的NGINX模板的一个示例:
server {
listen server-ip:443 ssl;
server_name example.com www.example.com;
ssl_certificate /home/user/conf/web/ssl.example.com.pem;
ssl_certificate_key /home/user/conf/web/ssl.example.com.key;
location / {
proxy_pass http://varnish-ip:6081;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Nginx on;
proxy_redirect off;
}
location @fallback {
proxy_pass http://varnish-ip:6081;
}
}https://stackoverflow.com/questions/46111620
复制相似问题