Forum Discussion
Arie
Altostratus
Apr 30, 2008HELP! - what's wrong with this redirect?
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/account" } {
HTTP::redirect https://www.domain2.com[HTTP::uri]
}
}
- hoolio
Cirrostratus
Nothing? Are you seeing an error on the browser? Are you seeing a TCL error in /var/log/ltm? What are the symptoms of the issue? - Arie
Altostratus
Error on the browser: The connection to the server was reset while the page was loading - Arie
Altostratus
Strangely enough, this one is working: - hoolio
Cirrostratus
I would guess there is a conflict between this rule and another iRule or module on the BIG-IP. Can you view the ltm log through the GUI under System >> Logs >> Local Traffic? Else, can you get a copy of the bigip.conf and post an anonymized copy of the virtual server and rule(s) definitions? - A couple of things. First, your first iRule is redirecting to https://www.domain2.com/account*. Have you tested that this URI works on it's own outside of the iRule. Also, I'm assuming that this iRule is NOT on the https virtual for www.domain2.com, otherwise you'll get yourself into a infinite loop.
- Arie
Altostratus
Scenario: - Juerg_Wiesmann
Nimbostratus
Hi
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