我想设置一个 Apache 服务器代理环境来实现此目的:无论您在浏览器中输入什么 [URL]
,Apache 服务器都会将其“代理”到 http://mydistantserver.com/[URL 编码]
.
示例:在浏览器中,我输入 http://amazon.com
=> 转到本地 Apache 代理,在内部将其更改为 http://mydistantserver.com/amazon.com
然后代理它(=> 调用 http://mydistantserver.com/amazon.com
并将结果发送回浏览器)。
有没有办法将重写规则放在 Apache 服务器代理模块之前?
哦顺便说一下:我的电脑已经使用了“全局”代理。因此,我希望 Apache 代理将其“工作人员”配置为使用此“全局”代理,否则他们将无法发出请求。
最佳答案
Is there a way to put ny rewriterule before it's used by the Apache server proxy module?
不,Apache 不是这样工作的。
关于Apache 代理配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16294664/