Forum Discussion
Mark_Vogel
Oct 16, 2013Altostratus
Simple HTTP session termination then back end session to web server
Hello Gurus! I'm VERY new to LTM but I suspect this one will be simple.
I've got an internal web app that simply uses http on port 80 from a company we acquired, which is currently on their loc...
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
}
}
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