我在 Apache 中有如下反向代理设置:
地址为 www.example.com/folder 的服务器 A 是反向代理服务器。
它映射到:地址为 test.madeupurl.com 的服务器 B
这种作品。但我遇到的问题是,在 www.example.com/folder 上,所有相关链接的形式都是 www.example.com/css/examplefilename.css 而不是 www.example.com/folder/css/examplefilename。 css
我该如何解决?
到目前为止,我的反向代理在服务器 A (www.example.com) 上有这个:
<Location /folder>
ProxyPass http://test.madeupurl.com
ProxyPassReverse http://test.madeupurl.com
</Location>
Run Code Online (Sandbox Code Playgroud)