【问题标题】:google pagespeed ssl configuration谷歌pagespeed ssl配置
【发布时间】: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 但是它说我的域是Authpagespeed_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


    【解决方案1】:

    pagespeed 的本机提取器导致问题。

    关闭 nativefetcher 并查看它是否解决了您的问题。

    pagespeed UseNativeFetcher off;

    【讨论】:

      猜你喜欢
      • 2018-11-18
      • 2018-06-20
      • 1970-01-01
      • 1970-01-01
      • 2017-02-15
      • 1970-01-01
      • 1970-01-01
      • 2019-01-26
      • 2019-11-17
      相关资源
      最近更新 更多