是否可以将 mod_pagespeed 中的基础 url 更改为使用 https
Is it possible to change the base url in mod_pagespeed to use https
我们在 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 来更正这个吗?
事实证明该站点 运行 在负载平衡器后面。所有 HTTPS 请求都通过 HTTP 转发。要解决此问题,我们需要设置
ModPagespeedRespectXForwardedProto on
https 支持的 documentation 解释了该过程。
我们在 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 来更正这个吗?
事实证明该站点 运行 在负载平衡器后面。所有 HTTPS 请求都通过 HTTP 转发。要解决此问题,我们需要设置
ModPagespeedRespectXForwardedProto on
https 支持的 documentation 解释了该过程。