Appending Relative path to the host name in the target server configuration

Not applicable

Hello,

Is there a way to add the relative path to the host name in the target server configuration? I don't want to reduce the overhead of adding the relative path in each proxies for which i am using this target server and also it will prevent exposing my internal service details.

Best Regards.

0 4 347
4 REPLIES 4

Not applicable

For clarity can you post a sample of what you are looking to achieve (anonymized of course)? It is unclear to me from your question what you are trying to achieve.

Hi Dallen,

Consider the below target server definition:

<TargetServer name="myTarget1">

<IsEnabled>true</IsEnabled>

<Host>https://www.google.co.in/</Host>

<Port>443</Port> </TargetServer>

So now for every proxy that i refer this target server in, i need to append the relative path to the hostname like mentioned below:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<TargetEndpoint name="default">

<Description>default</Description>

<HTTPTargetConnection>

<LoadBalancer> <Server name="ES4"/> </LoadBalancer>

<Path>/relativePath/</Path>

<Properties/> </HTTPTargetConnection> <PostFlow name="PostFlow">

<Request/> <Response/>

</PostFlow> <PreFlow name="PreFlow">

<Request/> <Response/> </PreFlow> </TargetEndpoint>

So as you can see i have to append the relative path for each proxy. I do not want to do this and looking for ways where I can mention this relative path as part of the target server configuration itself and just refer it from the proxy.

Regards,

Sadiq.

Did you ever get an answer to this question?

Not applicable

If you don't want to add anywhere in the proxy then, just append the path to the basepath. It will automatically get appended to the target server.