Forum Discussion
RSpangler_17032
Nimbostratus
Mar 06, 2017Remove ports from URL's
Hello,
I have the following iRule and it works as expected;
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"www.company.com" { pool company.com_www }
"www2.company.co...
nathe
Cirrocumulus
Mar 06, 2017What about simply using a wildcard as you're using glob?
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"www.company.com*" { pool company.com_www }
"www2.company.com*" { pool company.com_www2 }
"www3.company.com*" { pool company.com_www3 }
"www4.company.com*" { pool company.com_www4 }
}
}
Does this work for you?
N
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