Forum Discussion
Nacho_de_Aguina
Nimbostratus
Nov 15, 2005SSL Traffic redirector
Hello everybody:
What i need is
https://IP_VS/magallanes --> should be redirected to https://nodemagallanes
The same as hansolo
the third part (redirect) works fine
So I have the following scenary
One virtual server which is listening on 443, which has a profile of tcp, http and client SSL (which is configured with my certificate and key)
I have 2 pools which nodes are listening on 80 (this part i´m not pretty sure if it is well done, perhaps they must be on 443 also)
And this is my IRULE
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/magallanes" } {
pool pool_magallanes
}
elseif { [string tolower [HTTP::uri]] starts_with "/hansolo" } {
pool pool_hansolo
}
else {
HTTP::redirect "https://www.bsplink.iata.org" }
}
But what it doesn´t work is the pools part.
Does anybody know what i´m doing wrong?
Best regards and thanks a lot
Nacho
- unRuleY_95363Historic F5 AccountYour redirect is missing the uri. You'll need to trim the offending directory off the uri path and supply it to the redirect so when the client backs back after the redirect, they have the right uri starting with /magallanes. There are quite a few examples here on DevCentral of manipulating the uri to remove portions of the directory path.
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