Forum Discussion
kykong_107132
Nimbostratus
Mar 16, 2009redirect base on HTTP header
Hi All,
how can i use irule to do redirection base on HTTP header? Basically, if I see HTTP header Cookie exist in HTTP REQEUST header, I will redirect to server 1.
I build this irule,
when HTTP_REQUEST {
if {[HTTP::header] contains "Cookie"} {
pool server1
}
}
but this does not work.
Appreciate someone can help me.
thank in advance.
2 Replies
- hoolio
Cirrostratus
You can use HTTP::header exists "Cookie" (Click here) to do this. You would also want to select the pool if the HTTP request does not match your criteria. This ensures if multiple HTTP requests are made on the same TCP connection that the correct pool is selected each time. - kykong_107132
Nimbostratus
Hi 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