HTTP to HTTPS redirect
设置http to https重定向iRule脚本
# HTTP_to_HTTPS_iRule
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
# Factory F5 https redirect iRule
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
Virtual Servers调用HTTP_to_HTTPS_iRule
Local Traffic ›› Virtual Servers : Virtual Server List ›› http_vs_202.100.1.101