Forum Discussion

Nacho_de_Aguina's avatar
Nacho_de_Aguina
Icon for Nimbostratus rankNimbostratus
Nov 15, 2005

SSL 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_95363's avatar
    unRuleY_95363
    Historic F5 Account
    Your 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.