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
Unless you just absolutely need to get rid of the "/webapp" portion of the URI, it would be much simpler to keep it. Here's a slight modification to the first iRule:
when HTTP_REQUEST {
if { [TCP::local_port] equals "8052" } {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "http://[HTTP::host]/webapp"
} else {
HTTP::header replace Host "currenturl.olddomain.local"
}
}
}
This simply changes the Host header and redirects to /webapp if the request URI is blank.
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