【问题标题】:Is it possible to change the base url in mod_pagespeed to use https是否可以将 mod_pagespeed 中的基本 url 更改为使用 https
【发布时间】:2015-06-25 17:01:22
【问题描述】:

我们使用的是在 Apache 上运行的 Google PageSpeed 模块,是否可以对其进行配置以使基本 url 使用 https?

它当前输出以下内容。

<noscript>
    <meta HTTP-EQUIV="refresh" content="0;url='http://example.com/?ModPagespeed=noscript'" />
    <style><!--table,div,span,font,p{display:none} --></style>
    <div style="display:block">Please click <a href="http://example.com/?ModPagespeed=noscript">here</a> if you are not redirected within a few seconds.</div>
</noscript>

应该是https://example.com - 是否有设置 inpagespeed.conf 来纠正这个问题?

【问题讨论】:

    标签: apache mod-pagespeed


    【解决方案1】:

    事实证明,该站点是在负载平衡器后面运行的。所有 HTTPS 请求均通过 HTTP 转发。为了更正我们需要设置的问题

    ModPagespeedRespectXForwardedProto on
    

    用于 https 支持的 documentation 解释了该过程。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-09-18
      • 2014-12-29
      • 1970-01-01
      • 2011-12-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-12
      相关资源
      最近更新 更多