ADC

Insert IP address and port of a virtual server in the request header

If you have multiple virtual servers that communicate with different applications on the same service, you must configure the Citrix ADC appliance to add the IP address and port number of the appropriate virtual server to the HTTP requests that are sent to that service. This setting allows applications running on the service to identify the virtual server that sent the request.

If the primary virtual server is down and the backup virtual server is up, the configuration settings of the backup virtual server are added to the client requests. If you want the same header tag to be added, regardless of whether the requests are from the primary virtual server or backup virtual server, then you must configure the required header tag on both virtual servers.

Note: This option is not supported for wild card virtual servers or dummy virtual servers.

To insert the IP address and port of the virtual server in the client requests by using the CLI

At the command prompt, type:

set lb vserver <name> -insertVserverIPPort <insertVserverIPPort> [<vipHeader>]
<!--NeedCopy-->

Example:

set lb vserver Vserver-LB-1 -insertVserverIPPort VipAddr
<!--NeedCopy-->

To insert the IP address and port of the virtual server in the client requests by using the GUI

  1. Navigate to Traffic Management > Load Balancing > Virtual Servers.
  2. Open the virtual server, and in the Advanced Settings pane, click Traffic Settings, and then select Virtual Server IP Port Insertion and specify a virtual server IP port header.
Insert IP address and port of a virtual server in the request header