Forum Discussion
Ravi_75526
Nimbostratus
Jan 04, 2013Required irule for websphere version 8
Hi,
I am prety new to Irules. I have a client with 2 Websphere servers which each has 3 instances per server running on port 9081, 9082,9083. The servers was configured only to accept req...
nitass
Employee
Jan 04, 2013not sure if i understand your question correctly. do you want to replace host header to pool member (server) ip and port?
configuration
[root@ve10:Active] config b virtual bar80 list
virtual bar80 {
snat automap
pool foo
destination 172.28.19.252:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b pool foo list
pool foo {
members 200.200.200.101:9081 {}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST_SEND {
clientside { HTTP::header replace Host "[LB::server addr]:[LB::server port]" }
}
}
test
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 80 or port 9081
New TCP connection 1: 172.28.19.251(55626) <-> 172.28.19.252(80)
1357299062.8498 (0.0013) C>S
---------------------------------------------------------------
HEAD /enovia/emxLogin.jsp HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.252
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(55626) <-> 200.200.200.101(9081)
1357299062.8517 (0.0018) C>S
---------------------------------------------------------------
HEAD /enovia/emxLogin.jsp HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 200.200.200.101:9081
Accept: */*
---------------------------------------------------------------
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects