F5 iRule: 重定向 HTTP 请求从 10.20.132.2:442/srcbeibs 到 10.20.163.49:509/entweb
当 HTTP 请求到达 10.20.132.2 的 442 端口,并且路径为 /srcbeibs 时,将请求重定向到 https://10.20.163.49 的 509 端口,路径为 /entweb 的 iRule 如下所示:\n\ntcl\nwhen HTTP_REQUEST {\n if { [HTTP::host] equals "10.20.132.2" && [HTTP::uri] starts_with "/srcbeibs" } {\n HTTP::redirect "https://10.20.163.49:509/entweb[HTTP::uri]"\n }\n}\n
原文地址: https://www.cveoy.top/t/topic/pSXQ 著作权归作者所有。请勿转载和采集!