【发布时间】:2019-07-28 15:14:39
【问题描述】:
我有这个网址
https://example.com/image/test.jpg
我想用 Nginx 代理这个 url 上的图像
https://cdn0.tnwcdn.com/wp-content/blogs.dir/1/files/2018/02/google-pacman-796x419.jpg
不改变网址,即与https://example.com/image/test.jpg保持相同
您会在 location 块中放置什么来实现这一点?
【问题讨论】:
-
你能分享一下你的 nginx 配置吗?