ProxyPass – 无效的url

我在CentOS 6上创build了Apache 2.2的简单代理传递,但是这不起作用,并且抛出错误。 如果有人可以请求帮助,我会很感激:

SSLProxyEngine On ProxyPass / https://ecuo-test.fin.us2.oraclecloud.com/ ProxyPassReverse / https://ecuo-test.fin.us2.oraclecloud.com/ 

现在,当我把它叫做http:// MyHostName / finApInvQuickInvoicesModel / InvoiceInterfaceService?wsdl时,它会抛出以下错误:

 Invalid URL The requested URL "http://%5bNo%20Host%5d/finApInvQuickInvoicesModel/InvoiceInterfaceService?", is invalid. Reference #9.76fd241.1465372087.68aff0d 

而https://ecuo-test.fin.us2.oraclecloud.com/finApInvQuickInvoicesModel/InvoiceInterfaceService?wsdl工作得很好。

你能帮我解决这个问题吗?

猜测 ,你可能需要打开ProxyPreserveHost 。 ( 文档在这里 )

没有它,Apache对ecuo-test.fin.us2.oraclecloud.com的代理请求将有一个ecuo-test.fin.us2.oraclecloud.comHost头,我这个错误是试图表明最终的主机不能识别主机名。