Forum Discussion

Chris_Edgar_142's avatar
Chris_Edgar_142
Icon for Nimbostratus rankNimbostratus
Sep 06, 2005

Irule ignore - newbie question

Hi,

 

 

I have a simple irule as follows:

 

 

if (http_uri contains "Libra") {

 

redirect to "https://librast.stl-libra.co.uk/UB_0.0.6.3.2/security/login.do?method=executeAction"

 

}

 

else {

 

use pool Port_7777_Pool

 

}

 

 

 

When I attempt to access http://librast.stl-libra.co.uk/Libra the rule appears to be ignored and I receive a 404 error from the server.

 

 

We are running code 4.5PTF-03. Any help would be greatly appreciated.

 

 

Chris
  • Martin_Machacek's avatar
    Martin_Machacek
    Historic F5 Account
    Chris,

     

     

    are you sure your are hitting the right virtual server on the right BIG-IP? The rule definitely works on 4.5PTF03.

     

     

    BTW, you should upgrade to some more recent version of BIG-IP.
  • Hi,

     

     

    Thanks - it is working fine now.

     

     

    We have a requirement for the same virtual server to switch between HTTP and HTTPS as follows:

     

     

    Clients connect using HTTP which will be redirected to https://domain.com/Libra/security?method=executeAction when the user will be requested to logon.

     

     

    After the user has logged on, all other requests need to be in HTTP.

     

     

    Any further assistance you can provide would be much appreciated.

     

     

    Chris