Forum Discussion
Sunny_81459
Nimbostratus
Sep 16, 2008HTTP redirect
I need urgent help can some iRle expert write for me?
Brief:
currently, if i request https://test.com/groupabc/aarp.jsp is getting redirected to https://test.com/abc/priv...
hoolio
Cirrostratus
Sep 17, 2008Hi Sandy,
Can you try this version with additional logging? The output is written to /var/log/ltm by default. Also, if you have the pool added to the VIP, you can remove the pool statement from the iRule.
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: New HTTP request to [HTTP::host], [HTTP::uri] with Referer [HTTP::header value Referer]"
if { ([string tolower [HTTP::path]] eq "/abc/private/xyz.do") and ([HTTP::header value Referer] eq "") } {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched URI with no Referer. Redirecting client."
HTTP::redirect "https://test.com/groupabc/aarp.jsp"
} else {
log local0. "[IP::client_addr]:[TCP::client_port]: Request okay. Using default pool."
}
}
Aaron
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
