Forum Discussion

Sumit_Tyagi_121's avatar
Sumit_Tyagi_121
Icon for Nimbostratus rankNimbostratus
Apr 07, 2013

Need help on URL Redirection through possible irule

Please help in configuring my below requiremnt on F5 BIG-IP LTM 1600 ver11.3, as I have tried with some irules but no success

 

pool1_pool

 

Internal IP:port = 192.168.1.2:80 redirection from external VIP/URI 172.21.111.3/https://myuri.com/test1/*

 

 

pool2_pool

 

Internal IP:port = 192.168.1.2:8086 redirection from external VIP/URI 172.21.111.3/https://myuri.com/test2/*

 

 

pool3_pool

 

internal IP:port = 192.168.1.2:9000 redirection from external VIP/URI 172.21.111.3/https://myuri.com/test3/*

 

 

 

 

My one physical server running three webservers URI with seperate port defind above as internal IP & port so need to redirect the client SSL request to these three web with mappinp to myuri/test1, myuri/test2 & myuri/test3

 

 

Thanks for providing possible configuration & your expert comments

 

 

Regards,

 

Sumit

 

2 Replies

  • need your expert comment on below irule, can help in my requirement?

     

     

    when HTTP_REQUEST {

     

    log local0. "in HTTP_REQUEST"

     

    if { [HTTP::uri] starts_with "/test2" } {

     

    pool pool2_pool

     

    }

     

    elseif {[HTTP::host] starts_with "/test3"}{

     

    pool pool3_pool}

     

    else {

     

    pool pool1_pool}

     

    }

     

     

     

  • Jnon's avatar
    Jnon
    Icon for Nimbostratus rankNimbostratus
    You syntax looks right, are you seeing any errors in the LTM log? What do you have for pool members?

     

     

    if pool1_pool is the same our could be set as your default pool on the vip, you could eliminate the else statement.

     

     

    can you add a log statement after each pool selection so you can test your rule?

     

     

    Are any of the cases working?