【发布时间】:2017-12-27 09:41:17
【问题描述】:
在我的 nginx 服务器上为 https 网站设置 pagespeed 时遇到问题。
在一个普通的 http 网站上,所有图像和资源都被 pagespeed 缓存,但是当我们将网站切换到 https 时,它在pagespeed_global_admin/message_history 页面中显示Cannot fetch url xxx: as https is not supported 但是它说我的域是Auth 在pagespeed_gloal_admin/conf 页面。
我已将以下内容添加到 pagespeed.conf 文件中
pagespeed FetchHttps enable,allow_self_signed;
到 domain.conf 文件
pagespeed SslCertDirectory /etc/ssl/certs;
pagespeed SslCertFile /etc/ssl/certs/domain.com.crt;
我查看了https://www.modpagespeed.com/doc/https_support#configuring_ssl_certificates 并且有几个问题,SslCertFile 说它应该是 Web 服务器的 HTTTPS 客户端 SSL 密钥,而不是您的域 SSL 密钥,但是 Web 服务器的 HTTPS 客户端 SSL 密钥是什么?
编辑, 我在托管在 AWS ec2 实例上的 docker 中运行 Web 服务器。 Nginx 是 1.13.3 版本,pagespeed 是 1.12.34.2
【问题讨论】:
标签: ssl nginx pagespeed mod-pagespeed