【发布时间】:2014-02-17 04:21:38
【问题描述】:
RHELS 6.1 上的 Apache 2.2.15
在 https 后面的服务器上使用 mod_pagespeed(由网络的反向代理实现)。
所有 html url 都写为“//server.example.com/path/to/file.css”(因此,没有指定协议)。
问题:使用默认配置,pagespeed 将 url 重写为“http://server.example.com/path/to/file.css”
我正在试图弄清楚如何让它将网址重写为 https(或将其未指定为 //)。
阅读documentation后,我尝试像这样使用ModPagespeedMapOriginDomain
ModPagespeedMapOriginDomain http://localhost https://server.example.com
也试过了
ModPagespeedMapOriginDomain http://localhost //server.example.com
ModPagespeedMapOriginDomain localhost server.example.com
... 无济于事。网址不断被改写为“http://”。
问题:如何让 pagespeed 在其 url 中使用 https 而不是 http?
【问题讨论】:
标签: apache mod-pagespeed