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.0

Was this article helpful?