如何通过Apache中的ProxyPass传递参数

我想要做的和我被卡住的是:

我有一个Apache服务器,将抓住某些url,并为他们中的一些,他将使用ProxyPass(或mod_rewrite)作为反向代理传递给另一个Apache实例。

所以我有这样的url:

/index.php/info?format=xml&token=SOMENUMERICTOKEN&token=SUMENUMERICTOKEN 

我试过了 :

 PassProxy /index.php/info?format=xml https://1.2.3.4:567/index.php/info?format=xml 

和相关的ProxyReverse,但它不工作

也尝试用相同的行重写和[P]结束代理。

他们没有工作。

他们会工作,如果我以/index.php结束,但我不能允许访问index.php

ProxyPass仅在匹配的URL部分运行,而不在查询string上运行。 如果在模式中包含查询string,则永远不会匹配。

所以为了做你想要的东西,你可以使用如下的东西:

 ProxyPass /index.php/info https://1.2.3.4:567/index.php/info 

虽然在这种情况下,你甚至可以使用:

 ProxyPass / https://1.2.3.4:567/ 

基本上把proxypass看成是一种“search和replace”。 “ProxyPass AB”基本上是指“findURL中的A,如果find,用Breplace”。

好。

我刚刚离开/index.php/info在ProxyPass,它的工作。 也许这是逃避的东西? 标记。

作品。