Forum Discussion
Ted_Kircos_1126
Nimbostratus
Nov 24, 2006Need help - Before i pull my hair out!!!
Getting the following trying to add the irule below... Im stumped... Anyone see whats wrong or how to fix it? line 8: [undefined procedure: http://] ["http://" + [HTTP::header "AP_LOCHOST"]]...
Ted_Kircos_1126
Nimbostratus
Jan 30, 2007Here is my working copY!
when HTTP_RESPONSE {
if { [HTTP::status] starts_with "3" } {
set location [HTTP::header "Location"]
if {$location != "" } {
if {[HTTP::header "AP_NO_SSL_REDIR"] == "" } {
set find "http://"
append find [HTTP::header "AP_LOCHOST"]
set replace "https://"
append replace [HTTP::header "AP_LOCHOST"]
set newlocation [string map [list $find $replace] $location]
HTTP::header replace "Location" $newlocation
}
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects