gpt4 book ai didi

apache - 我如何使用 mod_pagespeed 重写 HTML 以从我的 CDN 提供图像?

转载 作者:行者123 更新时间:2023-12-01 10:59:05 24 4
gpt4 key购买 nike

我只想重写包含以下内容的页面:

<img src="http://www.example.com/foo/bar/hello.jpg" />

变成这样:

<img src="http://cdn.example.com/foo/bar/hello.jpg" />

我觉得这应该相当简单,但我花了三个小时阅读文档并尝试这样做。

最佳答案

  1. 确保启用 domain rewriting
  2. 然后配置您的 rewrite configuration to use your CDN

这应该可以解决问题。

关于apache - 我如何使用 mod_pagespeed 重写 HTML 以从我的 CDN 提供图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12912522/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com