Forum Discussion
arpydays
Feb 28, 2016Nimbostratus
Hi,
the uri is not contained in the host header and has a separate irule command to extract the value, this irule below should work although traffic policies may be the recommended approach for what you need to do...
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "cloudstuff.anywhere.com" } {
switch [string tolower [HTTP::uri]] {
"/p6" {
HTTP::header insert WL-Proxy-SSL true
pool pool_cloudstuff.anywhere.com_7123
}
"/" {
HTTP::redirect "https://cloudstuff.anywhere.com/p6"
}
}
}
}