Forum Discussion
Domai_23823
Sep 13, 2018Nimbostratus
error: [undefined procedure: default][default { discard }]
Hello Guys,
I have the below iRule and when I try to apply it I get the error - "error: [undefined procedure: default][default { discard }]"
When the users type in "https://topgear....
Lucas_de_Aguil1
Sep 13, 2018Nimbostratus
Try this indentation and with just two variables (performance +up):
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
set uri [string tolower [HTTP::uri]]
switch -glob $host {
"topgear" {
if { $uri contains "car" } {
SSL::disable serverside
pool toyota_pool
}
else {
if { $uri equals "/" } {
HTTP::respond 301 Location "https://cars.com"
}
}
}
default {
discard
}
}
}
- DomaiSep 13, 2018Altostratus
Dammm thanks...I don't know how I missed that.
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