Forum Discussion

gurrish_132043's avatar
gurrish_132043
Icon for Nimbostratus rankNimbostratus
Jan 30, 2014

LTM iRule to replace Apache ProxyPass with location

 
ServerName  
 
ProxyPass http://jboss:8080/location/content/sales                     
ProxyPassReverse http://jboss:8080/location/content/sales 


I am trying to write an iRule that can perform that same thing that I can do with an apache server with proxypass. I want mydomain.com/sales to be reverseproxied to my application server with a specific path without using a 302 HTTP Redirect. can anyone please point me in the right direction? I kind of lost.

2 Replies

  • I think that I should have looked further before I asked this question

     

    I found what I need.

     

    https://devcentral.f5.com/wiki/iRules.HTTP__path.ashx

     

  • But I assume what you want is a bidirectional rewrite. If so, there is actually a ProxyPass iRule implementation for BIG-IP. Do a search for "ProxyPass" in this forum. If you're running BIG-IP 11.4, you now have a rewrite profile that does pretty much the same thing.