We are receiving XML errors when we follow this process to configure SSL across a load balancer. We were following these procedures http://docs.apigee.com/api-services/content/load-balancing-across-backend-servers#
we have this configured but we need it to be over ssl
<TargetEndpoint name="default">
<HTTPTargetConnection>
<LoadBalancer>
<Server name="target1"/>
<Server name="target2"/>
</LoadBalancer>
<Path>/test</Path>
</HTTPTargetConnection>
</TargetEndpoint>
Solved! Go to Solution.
Not sure its a copy paste issue on this post or not, I see the "name" attribute without a space for TargetEndpoint and for Server tags
<TargetEndpoint name="default"> <HTTPTargetConnection> <LoadBalancer> <Server name="target1" /> <Server name="target2" /> </LoadBalancer> <Path>/test</Path> </HTTPTargetConnection> </TargetEndpoint>
If it is a typo on this post, can you also paste the error you are getting ?
Not sure its a copy paste issue on this post or not, I see the "name" attribute without a space for TargetEndpoint and for Server tags
<TargetEndpoint name="default"> <HTTPTargetConnection> <LoadBalancer> <Server name="target1" /> <Server name="target2" /> </LoadBalancer> <Path>/test</Path> </HTTPTargetConnection> </TargetEndpoint>
If it is a typo on this post, can you also paste the error you are getting ?
yeah thats a copy paste problem. Here is a clean code image and this is the error i'm receiving
Error Saving Revision 41
Error occurred while validation of bean default.xml. Reason: - Schema validation failed. Cause : unexpected element (uri:"", local:"TargetServer"). Expected elements are <{}SSLInfo>,<{}HealthMonitor>,<{}SessionCache>,<{}ErrorResponse>,<{}URL>,<{}LoadBalancer>,<{}Properties>,<{}Path>. Line number : 30. Column number : 37. File name : default.xml..
<HTTPTargetConnection> <LoadBalancer> <Server name ="test"/> </LoadBalancer> <SSLInfo> <Enabled>true</Enabled> </SSLInfo> <<URL>https://test.test.com</URL> <Replace with Target Path to back end <Path>{flow.targetPath}</Path> <TargetServer name ="test"> <Host>test.test.com</Host> <Port>443</Port> <IsEnabled>true</IsEnabled> <SSLInfo> <Enabled>true</Enabled> </SSLInfo> </TargetServer>-->
This should do the trick
<HTTPTargetConnection> <LoadBalancer> <Server name="L7_TSP"/> </LoadBalancer> <Path>{flow.targetPath}</Path> </HTTPTargetConnection>
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |