如何配置Oracle HTTP服务器apache mod_proxy以通过HTTPS代理对外部(源)服务器的某些HTTPS请求

时间:2015-01-04 16:18:44

标签: oracle apache proxy mod-proxy oracle-application-server

我在两台不同的服务器上运行了两个不同的应用程序     1. server1 app1 让我们说" abc.com" ,我正在发布api post请求&# 34; https abc.com/api/v1/clientId/setdata" 。该服务器驻留在公司的虚拟私有云上。它基于使用OHS的Oracle应用服务器。     2.还有一个应用程序在外部服务器上运行 server2 app2 让我们说" xyz.com" 。此服务器在带有Apache Web服务器的Amazon AWS上运行。

现在我的问题是:对于某些clientIds,我想将来自abc.com的请求代理到xyz.com &#34; https xyz.com/api/clientId/setdata" < / p>

我执行的步骤。

我在服务器1修改了apache重写规则&#34; abc.com&#34;如下

RewriteRule ^/api/v1/testClient/(.*) https://xyz.com/api/testClient/setdata [P,L]
ProxyPassReverse  / https://xyz.com/

但是当我发送api请求&#34; https://abc.com/api/v1/testClient/445

时,我收到了以下错误
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /api/certs/v1/testClient/445.

Reason: Error reading from remote server 

任何人都可以解释一下这个错误是什么。我在xyz.com的访问日志中看不到任何内容。 当有人试图将https请求代理到外部服务器时,请求流如何发生?

上述问题的最佳解决方案是什么?

0 个答案:

没有答案