Forum Discussion
zipperbox_11405
Jan 21, 2013Nimbostratus
Thanks!
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]]"