Forum Discussion
Kevin_Stewart
Oct 17, 2013Employee
This should work:
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
if { [TCP::local_port] equals "8052" } {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "http://[HTTP::host]/webapp"
} else {
HTTP::header replace Host "currenturl.olddomain.local"
}
}
}
when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression {@currenturl.olddomain.local@newurl.ourdomain.com:8052@}
STREAM::enable
}
}