Apigee>Admin>Environments>Target Servers: "http://host/path" gives "Host can only contain letters.."

Apigee>Admin>Environments>Target Servers: "http://host/path"
gives "Host can only contain letters, numbers, hyphens, and periods".

Could someone be so kind to suggest how we can use "http://host/path" (e.g. mocktarget.apigee.net/endpoint_name_here) in the Target Servers?

 

Good day, dear community,

thank you, 

best regards, Yermek

Solved Solved
0 1 135
1 ACCEPTED SOLUTION

@optimism 
You can only configure the Hostname in a Target Server.

If you want to configure a path, you have to do it at the Target Endpoint flow like below, where targetServer1 is the exact name of the Target Server you have configured under Apigee>Admin>Environments>Target Servers

 

<HTTPTargetConnection>
    <LoadBalancer>
      <Server name="targetserver1" />
    </LoadBalancer>
    <Path>/basepath</Path>
 </HTTPTargetConnection>

 


Source: https://docs.apigee.com/api-platform/deploy/load-balancing-across-backend-servers

View solution in original post

1 REPLY 1

@optimism 
You can only configure the Hostname in a Target Server.

If you want to configure a path, you have to do it at the Target Endpoint flow like below, where targetServer1 is the exact name of the Target Server you have configured under Apigee>Admin>Environments>Target Servers

 

<HTTPTargetConnection>
    <LoadBalancer>
      <Server name="targetserver1" />
    </LoadBalancer>
    <Path>/basepath</Path>
 </HTTPTargetConnection>

 


Source: https://docs.apigee.com/api-platform/deploy/load-balancing-across-backend-servers