Forum Discussion
steph_01_143006
Nimbostratus
Aug 12, 2014port translation for pool member
Hello,
I have a VS which listen on port 443. the pool member needs to listen to different ports according the hostname.
For example :
https://toto.com => GIB-IP (VS 10.1.1.1) => http://node:2202...
IheartF5_45022
Nacreous
Aug 12, 2014It's not enough to add the port number to the Host header (in fact you may not even need to do that) - you need select a pool based on the port you want (so you will need 10 pools - one for each port);-
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"toto.com" {
HTTP::header replace Host "[HTTP::host]:22020"
pool pl_mypool_22020
}
"titi.com" {
HTTP::header replace Host "[HTTP::host]:22021"
pool pl_mypool_22021
}
default {
drop
}
}
}
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