Forum Discussion
WestonBlake_700
May 10, 2013Nimbostratus
Sorry in the request, so now it looks like this:
when HTTP_REQUEST {
set header2 [string tolower [HTTP::host]]
HTTP::header insert bla_site $header2
HTTP::header replace Host internalurl.com
switch -glob [string tolower [HTTP::uri]] {
default { DEFAULT_POOL
pool pool_Default
}
}
}
when HTTP_RESPONSE {
if { [HTTP::is_redirect] }{
HTTP::header replace Location [string map [ list internalurl.com $header2 ] [HTTP::header Location]]
set location $header2
}
}