Forum Discussion
C_D_18583
Nimbostratus
Nov 20, 2006Replacing in the URI ; http -> https and port 80 -> 443
What is the easiest way to rewrite the following string? Replacing in the URI http -> https and port 80 -> 443
Before:
https://testlab-d.tdx.dorion.com/amserver/UI/Login?go...
Steve_Manuel_11
Nimbostratus
Nov 28, 2006Hi Aaron;
Still having challenges. When add the HTTP_RESPONSE event F5 does not respond to the HTTP get from client browser. Firefox live headers shows request GET https://secureinternal-d.tmi.telus.com/eperformance/Login.do?LANGUAGE=EN
Thx
Steve
My rule is now
when HTTP_RESPONSE {
if { [HTTP::status] starts_with "3" and [HTTP::header "Location"] != ""} {
HTTP::header "Location" [string map { goto=http% goto=https% %3A80% %3A443% } [HTTP::header "Location"] ]
}
}
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/eperformance/" } {
persist source_addr 1800
pool D3_INT1_EMPLOYEE_8
}
elseif { [HTTP::uri] starts_with "/amserver/" } {
persist source_addr 1860
pool D2_INT1_IDENTITY
}
elseif { [HTTP::uri] starts_with "/amconsole/" } {
persist source_addr 1860
pool D2_INT1_IDENTITY
}
}
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