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(或将其未指定为 //)。
阅读文档后,我尝试像这样使用 ModPagespeedMapOriginDomain
ModPagespeedMapOriginDomain http://localhost https://server.example.com
也试过
ModPagespeedMapOriginDomain http://localhost //server.example.com
ModPagespeedMapOriginDomain localhost server.example.com
……无济于事。网址不断被改写为“http://”。
问题:如何让 pagespeed 在其 url 中使用 https 而不是 http?