We have setup the message-processor.properties with the HTTP proxy information as follows:
conf_http_HTTPClient.use.proxy=false conf/http.properties+HTTPClient.proxy.host=ProxyIP1 conf/http.properties+HTTPClient.proxy.port=ProxyPort
When we need to use the proxy server we add the property use.proxy into the target endpoint:
<HTTPTargetConnection> <Properties> <Property name="use.proxy">true</Property> </Properties> <LoadBalancer> <Server name="TargetServer1"/> </LoadBalancer> <Path>/Thepath</Path> </HTTPTargetConnection>
This configuration works fine.
However, we have a requirement where in we want to use ProxyIP1 for TargetServer1and ProxyIP2 for TargetServer2.
So essentially I would like to be able to override the property proxy.host in target endpoint. This will enable me to use different proxy servers for different target servers in same or different API Proxy. But as per this documentation, I see that we can't use this property in the target endpoint configuration.
Is there any alternative way to achieve our requirement ?
I am curious. Why does your proxy vary by target server?
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |