Forum Discussion

Tariq_Sako_9038's avatar
Tariq_Sako_9038
Icon for Nimbostratus rankNimbostratus
Dec 11, 2012

iRule HTTP Response

Dear All,

 

i have a problem on my F5 box! hope that you can help me with it please, when i browse to my server https, the server responds to me with http! and nothing there to display.. so i add (s) on every request and it works fine.. if i browsed to the node IP directly without the VS, everything works fine, note that i'm using a custom port (2012) so my setup is like this

 

 

VS 10.1.1.1:2012 (client side SSL - iRule for URL) - Pool-2012 - Nodes

 

i have an irule for the URL to use a short version, so when i request (https://www.mywebsite:2012/) the F5 translates it to (https://mywebsite:2012/login.jsp)

 

can you please help me solve this issue

 

6 Replies

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus
    I wonder if Redirect Rewrite will help here.

     

     

    See sol6912: http://support.f5.com/kb/en-us/solutions/public/6000/900/sol6912.html?sr=25960186

     

     

    HTH,

     

    N
  • thanks a lot for your kind help, i'm testing the solution provided in the link, it is very similar to the problem im facing, i will let you know

     

    appreciate your time and efforts..
  • first of all, thanks a lot Nathan, the link you advice solved half of the problem which is great!! now i need to fix the other half

     

     

    Before the Solution you provided! (without the irule)

     

    i would get a page saying java security error, and its http not https.

     

     

    i have this irule

     

     

    when HTTP_REQUEST {

     

    if {[HTTP::uri] equals "/" } {

     

    HTTP::uri "/sakosat/faces/pages/login.jsp" }

     

    }

     

     

    its working now when i request the full URL (https://mywedsite.com:2012/sakosat/faces/pages/login.jsp), but it will not work when i do (https://mywedsite.com:2012)!! it used to work but i dont know what the developers changed and they claim its working fine since its working without the irule

     

     

     

  • I'd suggest a redirect would be better here;

    
    when HTTP_REQUEST {
    if { [HTTP::uri] equals "/" } {
    HTTP::redirect "https://[HTTP::host]/sakosat/faces/pages/login.jsp"
    }
    }
    
  • thanks a lot steve, what you provided is working great.. thanks all for your great efforts. appreciate your time and efforts..