Forum Discussion
Lucas_de_Aguil1
Nimbostratus
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
}
}
}
Domai
Sep 13, 2018Altostratus
Dammm thanks...I don't know how I missed that.