Forum Discussion
Little_Daemon_1
Nimbostratus
Nov 13, 2013Redirect initial request to a different URL
Guys, I have an iRule that looks like this:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/context/ws" } {
pool pool_8080
} elseif ...
What_Lies_Bene1
Cirrostratus
Nov 13, 2013Just set a variable and check for that first, for example;
when CLIENT_CONNECTED {
set firsttime 1
}
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/context/first.jsp"} && ($firsttime equals 1) } {
set firsttime 0
HTTP::uri /context/login.jsp
pool pool_80
}
There's probably a better way but all I can think of right now. Not sure if it'll break if a second TCP connection is opened.
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