Kamalpreet_1068
Aug 24, 2012Nimbostratus
Node Selction based on Host Header
Hi ,
This is the first time i am writting here
I have the following scenario
Client sends a data to Virtual IP and having a host header "xsp-tibapp-qa-nlb.pac.com:8100"
Application is very specific about Host headers
On Server 1 - It understand Host header "xsp-tibapp-qa1.pac.com:8100"
On Server 2 - It Understand Host Header "xsp-tibapp-qa2.pac.com:8100"
I have written a Irule which can change the host header value
But the problem is i cannot load balance the traffic.
I want if i change the host header to "xsp-tibapp-qa1.pac.com:8100" it should go to Server 1
and if i cange it to "xsp-tibapp-qa2.pac.com:8100" it should go to Server 2
Irule is as follows
when HTTP_REQUEST {
if { [HTTP::host] equals "xsp-tibapp-qa-nlb.pac..com:8100"} {
HTTP::header replace "Host" "xsp-tibapp-qa1.pac.com:8100"
use node server1
}
}