HTTP to HTTPS Location rewrite with custom port
Problem this snippet solves: The SSL port is assigned in the following line:
lreplace $loc_list 2 2 [lindex [split [lindex $loc_list 2] ":"] 0]:80
change the ':80' to any required port...
Updated Jun 06, 2023
Version 2.0Andy_McGrath
Cumulonimbus
Joined November 14, 2005
Pavel_Stoyanov_
Jan 05, 2017Nimbostratus
Getting the following error on BIG-IP v11.6.0.8.0.482:
01070151:3: Rule [/Common/HTTP_to_HTTPS_Location_rewrite_with_custom_port] error: /Common/HTTP_to_HTTPS_Location_rewrite_with_custom_port:14: error: [wrong args][lreplace [$loc_list 0 0 "https:"]] /Common/HTTP_to_HTTPS_Location_rewrite_with_custom_port:19: error: [wrong args][lreplace [$loc_list 2 2 [lindex [split [lindex $loc_list 2] ":"] 0]:80]]