Forum Discussion
muzammil_88686
Aug 15, 2011Nimbostratus
Redirection to another pool
Dear Dev Team,
We have two Virtual Servers as below.
Virtual Server1:
---------------
Virtual Server Name: VS1
Virtual Server IP: 10.1.1.1
Pool Name: PL1
...
Michael_Yates
Aug 15, 2011Nimbostratus
Hi muzammil,
You have an HTTP::redirect prior to your Pool Selection so it was getting redirected to away instead of being routed to the pool.
If you want to maintain your HTTP::host value but still route your traffic to a different pool you can.
Below I corrected the HTTP::uri to "/test123/test.html" only as a precaution (if the test.html is not the default document and to insure that you get directed to the right place). This is not necessarily needed depending on your application.
I then just routed the traffic to the correct pool without a redirect.
when HTTP_REQUEST priority 10 {
Check requested content on the header
if {[string tolower [HTTP::uri]] starts_with "/test123"}{
Set new HTTP::uri
HTTP::uri "/test123/test.html"
Send to the new pool
pool PL2
}
}
Hope this helps.
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