cancel
Showing results for 
Search instead for 
Did you mean: 

Redirection HTTPS site to another HTTPS site

joyride_us
Altostratus
Altostratus

Hello!

 

That does not seem to be possible ?

Thanks!

 

7 REPLIES 7

Do you mean redirection from e.g. https://abc.com to https://xyz.com? If yes, then its possible using simple iRule or LTM policy as well.

joyride_us
Altostratus
Altostratus

Hi, thank you for your answer...I have tried with iRule but redirection from HTTPS to HTTPS does not seem possible...?

Could you please share the iRule that you are trying to use?

joyride_us
Altostratus
Altostratus

Sure. This is applied to an HTTPS VS :

(and does not work, BigIP complains that the VS is HTTPS and therefore cannot have applied an HTTP_REQUEST iRule)

when HTTP_REQUEST {

    if { [HTTP::path] contains "superb" } {

     HTTP::redirect "https://website.com/newpage"

}

}

iRule looks good to me. Are you getting error related to the HTTP profile required on the virtual server while mapping iRule to it. As iRule include HTTP_REQUEST event, it will require http profile on the virtual server. If the error is different, could you please share detailed error snap?

joyride_us
Altostratus
Altostratus

No as I said, it is just that the VS that is set as HTTPS does not take the HTTP_REQUEST (and REDIRECT afterwards)...

iaine
MVP
MVP

Hi

 

Sounds like your VIP is working at Layer 4 and not Layer 7. To be able to inspect the HTTP payload you need to apply SSL profiles to the VIP so that it can decrypt the packets and inspect them at Layer 7 (HTTP)