F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Muhammad_Irfan1's avatar
Oct 19, 2014

Apache to F5 LTM transfer of configurations

Currantly apache load balancer is used and working as proxypass and reverse proxypass. Now i have to transfer that to F5 LTM 5000s v.11.4.0.

 

I think this could be done with rewrite profile. what i want is that my VS should listen all requests on http://10.10.10.1:80 and load balance in different pools deciding on the base of URI. Like if request comes http://10.10.10.1:80/Services/EFICS/ReserveIMSI/Interface/HTTPXMLServiceRequestFile should load balance in pool http://10.50.160.20:9592/Services/EFICS/ReserveIMSI/Interface/HTTPXMLServiceRequestFile http://10.50.160.21:9592/Services/EFICS/ReserveIMSI/Interface/HTTPXMLServiceRequestFile http://10.50.160.21:9592/Services/EFICS/ReserveIMSI/Interface/HTTPXMLServiceRequestFile

 

F5 should decide the pool on the basis of /Services/ in this case. I will have alot of pools against one VS. How shoudl i do this. help

 

3 Replies

  • Sir that proxypass irule was hard for me to understand. Can you simplify it a little? just right the basic part of it. Currently i found a work around and i decide a pool on the basis of full URL. But you can understand i have to put one entry for each service. Can you right the simplified proxypass iRule. like I have a VS with proxypass or URI is /test

     

    http://10.50.172.1:80/test/Services/IN/Interfaces/GetRechargeHistoryList-SOAP

     

    http://10.50.169.14:9801/Services/IN/Interfaces/GetRechargeHistoryList-SOAP http://10.50.169.16:9801/Services/IN/Interfaces/GetRechargeHistoryList-SOAP http://10.50.169.20:9801/Services/IN/Interfaces/GetRechargeHistoryList-SOAP

     

  • So, writing a simplified version wouldn't be too hard, but I know that the rule listed above handles quite a few edge cases. Using that proxypass iRule on a Virtual Server named 'my-vs', you would create a data group called 'ProxyPassmy-vs', of type 'string'. There would be an entry for each rule that you want. The 'String' value would be the URI path you are looking for on the outside, and the 'Value' would be the string on the inside (to rewrite) and the pool name to select.

     

    For example: String '/Portal', and Value '/dcaportal dca_pool' would take any request with a URI starting with '/Portal' and rewrite it to '/dcaportal', and route the traffic to the dca_pool.

     

    The Virtual server would see a request for 'http://phost/Portal/dashboard.htm', and the selected server in the dca_pool would see 'http://phost/dcaportal/dashboard.htm'