Forum Discussion
jdhaase01_18884
Nimbostratus
Oct 04, 2016iRule to redirect URL using 8443 to non standard port and pool based on path
We need an iRule using a single VIP that will look at the path and change the port number and use a unique Pool. Here is the logic of how we'd like it to work. I am new to writing iRules and am ver...
Shaun_Simmons1
Altostratus
Oct 04, 2016What ekaleido said or a complicated iRule that is like the below. I'm a script kiddie .. ha and don't have access to a box right now or I'd make sure the syntax is correct. I'm sure someone else will chime in and fix my mess haha.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"myapplication.mycompany.com" {
}
}
}
"*:8013/SB13" { pool "POOL_SB13" }
"*:8014/SB14" { pool "POOL_SB14" }
"*:8015/SB15" { pool "POOL_SB15" }
"*:8016/SB16" { pool "POOL_SB16" }
"*:8017/SB17" { pool "POOL_SB17" }
"*:8018/SB18" { pool "POOL_SB18" }
"*:8019/SB19" { pool "POOL_SB19" }
"*:8020/SB20" { pool "POOL_SB20" }
"*:8021/SB21" { pool "POOL_SB21" }
"*:8022/SB22" { pool "POOL_SB22" }
"*:8023/SB23" { pool "POOL_SB23" }
default { pool "POOL_SB13" }
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