Forum Discussion

Ramesh_Babu_A_3's avatar
Ramesh_Babu_A_3
Icon for Nimbostratus rankNimbostratus
May 05, 2019

Traffic goes to real server sub path | irule needs to create

Dear Friends, I have to create Irule for the following scenario,

 

When we accessing the url/vip at the time traffic goes to real server sub path. Please advise to me how to create, needs to deliver before tomorrow morning, please help me.

 

Ex: Vip : 192.168.1.2

 

Node : 10.10.10.2:8080/subfloder/log.html

 

Please advise to me how to create Irule.

 

6 Replies

  • Hi Rafael,

     

    Thanks for your info, i will check and let you know.

     

    But user should not know about the back end redirection, because they should only access the url or vip.

     

    Is it possible to we create like that ?

     

  • Humm... That way I think you will have to use some kind of rewrite profile (I think). The redirect I told you woul get to the user's browser for sure.

     

  • Hi Ramesh! I'm afraid I can't. Never did that!

     

    Best of luck.

     

  • You can write irule some thing like this.

      when HTTP_REQUEST{
      if { [string tolower [HTTP::uri] ] starts_with "/" } {
      HTTP::uri [string map {"/" "/subfloder/log.html"} [HTTP::uri]]
     node 10.10.10.2 8080
         }
      }