Forum Discussion

Sulabh_Srivasta's avatar
Sulabh_Srivasta
Icon for Altostratus rankAltostratus
Jun 14, 2019

Replace Apache server with F5 as reverse proxy

Hi All,

 

We want to use F5 as reverse proxy and replace Apache server working as Proxypass and Proxypass reverse. Please assist me in setting F5.

 

Proxy Rules (Arc Server)

ProxyPass       /arcgis/arcgiscache       balancer://balancer-arcgis/arcgis/arcgiscache

ProxyPassReverse /arcgis/arcgiscache       balancer://balancer-arcgis/arcgis/arcgiscache

3 Replies

  • If you don't know at all how to configure F5l this might be tricky - get yourself on a training course! Or as someone in your company who knows how to configure F5 devices! Basically you will need a Virtual Server with your las balancer members as pool members.

    • Sulabh_Srivasta's avatar
      Sulabh_Srivasta
      Icon for Altostratus rankAltostratus

      Hi,

       

      I am the F5 admin in my company and know how to configure the F5 however don't know how to write the iRule for reverse proxy to replace Apache server.

      My apologies if you got confused with my sentence "Please assist me in setting F5", I actually mean that I need assistance for iRule or other way to set the F5 as reverse proxy and replave Apache.

       

      Hope this clear your doubt. If you know please let me know.

       

      Thanks.

  • This F5 article tells you exactly how to do it, complete with diagrams and sample configuration. Basically you need two features working together: an LTM Traffic Policy and an LTM Rewrite Profile.

     

    However, you must beware of the fact that as of this time, the Rewrite Profile referenced in the document is apparently case sensitive. Mod_Proxy rules like ProxyPass and ProxyPassReverse are not. And to my knowledge, there is no way to make the LTM Rewrite Profile case insensitive (I have asked the question on DevCentral about case sensitivity and am trying to figure out if there is some way I'm not aware of to change it).

     

    If you are confident all your URLs will come in in lowercase, you could still use it. However, if you are not, then I would recommend using the Traffic Policy as shown in the document for pool routing, but consider other means to rewrite the request and response URI references, such as more traffic policy rules or an iRule.