參考了一下原廠文件設定,有些事情要注意一下
1.可使用Web UI 或者 tmsh 設定(這邊展示Web UI設定)
2.Virtual server 必須同時要有HTTP & HTTPS 服務
3.HTTP & HTTPS Virtual server必須有相同的DNS Name & IP
設定步驟如下:
Local Traffic → Policy → Policy List → Create
Name: 隨意取名,我設定HTTPtoHTTPs
Require: http
Controls: forwarding
Rules:Add
Rule:name 隨意取名,我設定HTTPtoHTTPSrule
Target: http-reply
Event: request
Action: redirect
Parameters: location https://[getfield [HTTP::host] “:” 1][HTTP::uri]
把建立好的Policy套用在HTTP Virtual Server上
Local Traffic → Virtual Servers → edit HTTP VIP → Resources
套用Policies
Refer:https://support.f5.com/csp/article/K14996
Refer:https://support.f5.com/csp/article/K15030
Facebook Comments