Forum Discussion
zipperbox_11405
Nimbostratus
Jan 14, 2013Mulitple URL Replace and stream profile
I have a case where the internal naming of multiple servers have to be replaced by a single FQDN. I am succesful when dealing with one instance but not with many. Here is my current iRule, note: it s...
zipperbox_11405
Nimbostratus
Jan 21, 2013Thanks!
I'm getting closer... now inside2.net works as required. As for inside1.net it no longer gives me a broken URL error, but the page renders as blank. Any ideas?
when HTTP_REQUEST {
set LogString "Client [IP::client_addr]:[TCP::client_port] -> [HTTP::host][HTTP::uri]"
log local1. "============================================="
log local1. "$LogString (request)"
foreach aHeader [HTTP::header names] {
log local1. "$aHeader: [HTTP::header value $aHeader]"
}
log local1. "============================================="
}
when HTTP_RESPONSE {
log local1. "============================================="
log local1. "$LogString (response) - status: [HTTP::status]"
foreach aHeader [HTTP::header names] {
log local1. "$aHeader: [HTTP::header value $aHeader]"
}
log local1. "============================================="
if { [HTTP::is_redirect] } {
HTTP::header replace Location "[string map -nocase [list http%3A%2F%2Finside1.net http%3A%2F%2Ffqdn.com http%3A%2F%2Finside2.net http%3A%2F%2Ffqdn.com] [HTTP::header value Location]]"
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