title: Proxy server's Load balance configuration in Websphere application server 8.5.5
body: <p>I am trying to configure a proxy server to load balance the HTTP requests between my two application servers. </p>
  
  <p>I have achieved to route the requests using round robin method.</p>
  
  <p>Now that, I am wondering how to configure the enable session affinity, since I am facing issue after login, with the error - session terminate.</p>
  
  <p>Thanks in advance. Please let me know if any further information is required.</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;&lt;!--HTTP server plugin config file for the cell sterlingdevCell01 generated on 2015.09.30 at 06:53:03 PM IST--&gt;
  &lt;Config ASDisableNagle="false" AcceptAllContent="true" AppServerPortPreference="HostHeader" ChunkedResponse="false" FIPSEnable="false" FailoverToNext="false" HTTPMaxHeaders="300" IISDisableFlushFlag="false" IISDisableNagle="false" IISPluginPriority="High" IgnoreDNSFailures="false" KillWebServerStartUpOnParseErr="false" MarkBusyDown="false" OS400ConvertQueryStringToJobCCSID="false" RefreshInterval="60" ResponseChunkSize="64" SSLConsolidate="true" StrictSecurity="false" TrustedProxyEnable="false" UseInsecure="false" VHostMatchingCompat="false"&gt;
     &lt;Log LogLevel="Error" Name="/usr/IBM/WebSphere/Plugins/logs/http_plugin.log"/&gt;
     &lt;Property Name="ESIEnable" Value="true"/&gt;
     &lt;Property Name="ESIMaxCacheSize" Value="1024"/&gt;
     &lt;Property Name="ESIInvalidationMonitor" Value="false"/&gt;
     &lt;Property Name="ESIEnableToPassCookies" Value="false"/&gt;
     &lt;Property Name="ESICacheidFull" Value="false"/&gt;
     &lt;Property Name="PostSizeLimit" Value="-1"/&gt;
     &lt;Property Name="PostBufferSize" Value="0"/&gt;
     &lt;Property Name="PluginInstallRoot" Value="/usr/IBM/WebSphere/Plugins/"/&gt;
     &lt;Property Name="Keyfile" Value="/usr/IBM/WebSphere/Plugins/etc/plugin-key.kdb"/&gt;
     &lt;Property Name="Stashfile" Value="/usr/IBM/WebSphere/Plugins/etc/plugin-key.sth"/&gt;
     &lt;VirtualHostGroup Name="default_host"&gt;
        &lt;VirtualHost Name="*:9080"/&gt;
        &lt;VirtualHost Name="*:80"/&gt;
        &lt;VirtualHost Name="*:9443"/&gt;
        &lt;VirtualHost Name="*:5060"/&gt;
        &lt;VirtualHost Name="*:5061"/&gt;
        &lt;VirtualHost Name="*:443"/&gt;
        &lt;VirtualHost Name="*:9066"/&gt;
        &lt;VirtualHost Name="*:9086"/&gt;
        &lt;VirtualHost Name="*:9449"/&gt;
        &lt;VirtualHost Name="*:9049"/&gt;
        &lt;VirtualHost Name="*:9067"/&gt;
        &lt;VirtualHost Name="*:9087"/&gt;
        &lt;VirtualHost Name="*:9450"/&gt;
        &lt;VirtualHost Name="*:9050"/&gt;
     &lt;/VirtualHostGroup&gt;
     &lt;VirtualHostGroup Name="proxy_host"&gt;
        &lt;VirtualHost Name="*:1024"/&gt;
        &lt;VirtualHost Name="*:1025"/&gt;
        &lt;VirtualHost Name="*:9061"/&gt;
        &lt;VirtualHost Name="*:9062"/&gt;
        &lt;VirtualHost Name="*:9080"/&gt;
        &lt;VirtualHost Name="*:9081"/&gt;
     &lt;/VirtualHostGroup&gt;
     &lt;ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="cluster01" PostBufferSize="0" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60" ServerIOTimeoutRetry="-1"&gt;
        &lt;Server CloneID="19vq01jfc" ConnectTimeout="5" ExtendedHandshake="false" LoadBalanceWeight="2" MaxConnections="-1" Name="sterlingdevNode01_member01" ServerIOTimeout="900" WaitForContinue="false"&gt;
           &lt;Transport Hostname="sterlingdev.lmggi.com" Port="9086" Protocol="http"/&gt;
           &lt;Transport Hostname="sterlingdev.lmggi.com" Port="9449" Protocol="https"&gt;
              &lt;Property Name="keyring" Value="/usr/IBM/WebSphere/Plugins/etc/plugin-key.kdb"/&gt;
              &lt;Property Name="stashfile" Value="/usr/IBM/WebSphere/Plugins/etc/plugin-key.sth"/&gt;
           &lt;/Transport&gt;
        &lt;/Server&gt;
        &lt;Server CloneID="19vq01lue" ConnectTimeout="5" ExtendedHandshake="false" LoadBalanceWeight="2" MaxConnections="-1" Name="sterlingdevNode02_member02" ServerIOTimeout="900" WaitForContinue="false"&gt;
           &lt;Transport Hostname="sterlingdev.lmggi.com" Port="9087" Protocol="http"/&gt;
           &lt;Transport Hostname="sterlingdev.lmggi.com" Port="9450" Protocol="https"&gt;
              &lt;Property Name="keyring" Value="/usr/IBM/WebSphere/Plugins/etc/plugin-key.kdb"/&gt;
              &lt;Property Name="stashfile" Value="/usr/IBM/WebSphere/Plugins/etc/plugin-key.sth"/&gt;
           &lt;/Transport&gt;
        &lt;/Server&gt;
        &lt;PrimaryServers&gt;
           &lt;Server Name="sterlingdevNode01_member01"/&gt;
           &lt;Server Name="sterlingdevNode02_member02"/&gt;
        &lt;/PrimaryServers&gt;
     &lt;/ServerCluster&gt;
     &lt;ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="dmgr_sterlingdevCellManager01_Cluster" PostBufferSize="0" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60" ServerIOTimeoutRetry="-1"&gt;
        &lt;Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="sterlingdevCellManager01_dmgr" ServerIOTimeout="900" WaitForContinue="false"/&gt;
        &lt;PrimaryServers&gt;
           &lt;Server Name="sterlingdevCellManager01_dmgr"/&gt;
        &lt;/PrimaryServers&gt;
     &lt;/ServerCluster&gt;
     &lt;ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server01_sterlingdevNode01_Cluster" PostBufferSize="0" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60" ServerIOTimeoutRetry="-1"&gt;
        &lt;Server CloneID="123456789" ConnectTimeout="5" ExtendedHandshake="false" MaxConnections="-1" Name="sterlingdevNode01_server01" ServerIOTimeout="900" WaitForContinue="false"&gt;
           &lt;Transport Hostname="sterlingdev.lmggi.com" Port="9080" Protocol="http"/&gt;
           &lt;Transport Hostname="sterlingdev.lmggi.com" Port="9443" Protocol="https"&gt;
              &lt;Property Name="keyring" Value="/usr/IBM/WebSphere/Plugins/etc/plugin-key.kdb"/&gt;
              &lt;Property Name="stashfile" Value="/usr/IBM/WebSphere/Plugins/etc/plugin-key.sth"/&gt;
           &lt;/Transport&gt;
        &lt;/Server&gt;
        &lt;PrimaryServers&gt;
           &lt;Server Name="sterlingdevNode01_server01"/&gt;
        &lt;/PrimaryServers&gt;
     &lt;/ServerCluster&gt;
     &lt;ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server02_sterlingdevNode02_Cluster" PostBufferSize="0" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60" ServerIOTimeoutRetry="-1"&gt;
        &lt;Server CloneID="987654321" ConnectTimeout="5" ExtendedHandshake="false" MaxConnections="-1" Name="sterlingdevNode02_server02" ServerIOTimeout="900" WaitForContinue="false"&gt;
           &lt;Transport Hostname="sterlingdev.lmggi.com" Port="9081" Protocol="http"/&gt;
           &lt;Transport Hostname="sterlingdev.lmggi.com" Port="9444" Protocol="https"&gt;
              &lt;Property Name="keyring" Value="/usr/IBM/WebSphere/Plugins/etc/plugin-key.kdb"/&gt;
              &lt;Property Name="stashfile" Value="/usr/IBM/WebSphere/Plugins/etc/plugin-key.sth"/&gt;
           &lt;/Transport&gt;
        &lt;/Server&gt;
        &lt;PrimaryServers&gt;
           &lt;Server Name="sterlingdevNode02_server02"/&gt;
        &lt;/PrimaryServers&gt;
     &lt;/ServerCluster&gt;
     &lt;UriGroup Name="proxy_host_cluster01_URIs"&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/snoop/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/hello"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/hitcount"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="*.jsp"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="*.jsv"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="*.jsw"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/j_security_check"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/ibm_security_logout"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/servlet/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/sbc/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/sma/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/smcfs/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/services/YIFWebService"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/services/YIFWebService/wsdl/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/*.jsp"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/*.jsv"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/*.jsw"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/j_security_check"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/ibm_security_logout"/&gt;
     &lt;/UriGroup&gt;
     &lt;Route ServerCluster="cluster01" UriGroup="proxy_host_cluster01_URIs" VirtualHostGroup="proxy_host"/&gt;
     &lt;UriGroup Name="default_host_cluster01_URIs"&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/commsvc.rest/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/*.jsp"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/*.jsv"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/*.jsw"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/j_security_check"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/ibm_security_logout"/&gt;
     &lt;/UriGroup&gt;
     &lt;Route ServerCluster="cluster01" UriGroup="default_host_cluster01_URIs" VirtualHostGroup="default_host"/&gt;
     &lt;UriGroup Name="proxy_host_server01_sterlingdevNode01_Cluster_URIs"&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/Landmark_Store/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/sbc/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/sma/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/smcfs/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/services/YIFWebService"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/services/YIFWebService/wsdl/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/*.jsp"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/*.jsv"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/*.jsw"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/j_security_check"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/ibm_security_logout"/&gt;
     &lt;/UriGroup&gt;
     &lt;Route ServerCluster="server01_sterlingdevNode01_Cluster" UriGroup="proxy_host_server01_sterlingdevNode01_Cluster_URIs" VirtualHostGroup="proxy_host"/&gt;
     &lt;UriGroup Name="default_host_server01_sterlingdevNode01_Cluster_URIs"&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/commsvc.rest/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/*.jsp"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/*.jsv"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/*.jsw"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/j_security_check"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/ibm_security_logout"/&gt;
     &lt;/UriGroup&gt;
     &lt;Route ServerCluster="server01_sterlingdevNode01_Cluster" UriGroup="default_host_server01_sterlingdevNode01_Cluster_URIs" VirtualHostGroup="default_host"/&gt;
     &lt;UriGroup Name="proxy_host_server02_sterlingdevNode02_Cluster_URIs"&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/Landmark_Store/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/sbc/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/sma/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/smcfs/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/services/YIFWebService"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/services/YIFWebService/wsdl/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/*.jsp"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/*.jsv"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/*.jsw"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/j_security_check"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/yantrawebservices/ibm_security_logout"/&gt;
     &lt;/UriGroup&gt;
     &lt;Route ServerCluster="server02_sterlingdevNode02_Cluster" UriGroup="proxy_host_server02_sterlingdevNode02_Cluster_URIs" VirtualHostGroup="proxy_host"/&gt;
     &lt;UriGroup Name="default_host_server02_sterlingdevNode02_Cluster_URIs"&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/commsvc.rest/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/*"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/*.jsp"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/*.jsv"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/*.jsw"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/j_security_check"/&gt;
        &lt;Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBM_WS_SYS_RESPONSESERVLET/ibm_security_logout"/&gt;
     &lt;/UriGroup&gt;
     &lt;Route ServerCluster="server02_sterlingdevNode02_Cluster" UriGroup="default_host_server02_sterlingdevNode02_Cluster_URIs" VirtualHostGroup="default_host"/&gt;
     &lt;RequestMetrics armEnabled="false" loggingEnabled="false" rmEnabled="false" traceLevel="HOPS"&gt;
        &lt;filters enable="false" type="URI"&gt;
           &lt;filterValues enable="false" value="/snoop"/&gt;
           &lt;filterValues enable="false" value="/hitcount"/&gt;
        &lt;/filters&gt;
        &lt;filters enable="false" type="SOURCE_IP"&gt;
           &lt;filterValues enable="false" value="255.255.255.255"/&gt;
           &lt;filterValues enable="false" value="254.254.254.254"/&gt;
        &lt;/filters&gt;
        &lt;filters enable="false" type="JMS"&gt;
           &lt;filterValues enable="false" value="destination=aaa"/&gt;
    &lt;/filters&gt;
  
        &lt;filters enable="false" type="WEB_SERVICES"&gt;
           &lt;filterValues enable="false" value="wsdlPort=aaa:op=bbb:nameSpace=ccc"/&gt;
        &lt;/filters&gt;
     &lt;/RequestMetrics&gt;
  &lt;/Config&gt;
  </code></pre>