Forum Discussion
gizmo_240301
Dec 23, 2015Nimbostratus
Masking URL on browser
I have a VIP, which runs an https page and calls other 8 VIPs. And that 8 VIPs redirect this https page, add port numbers and also load balances 8 servers with 8 different port numbers. For example, ...
Kai_Wilke
Dec 25, 2015MVP
Hi Gizmo,
it might be possible to inject a cookie_name=portnumber on the initial redirect and then use the cookie_value as differentiator for different instances.
iRule for :443
when HTTP_REQUEST {
if { [string tolower [HTTP::uri] starts_with "/xyz/login" } then {
set pool_port [HTTP::cookie value pool_port]
if { $pool_port == 9460 } then {
pool application1
} elseif { $pool_port == 9461 } then {
pool application2
} elseif { $pool_port == 9462 } then {
pool application3
} else {
Default pool or error message
}
} else {
Your redirect code but with additional cookie insert
}
}
Cheers, Kai
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