Forum Discussion
Chandu_14820
Nimbostratus
May 27, 2010Retrive Virtual server name by passing Virtual address string
Hi Everyone,
I am trying retrieve Virtual server name by passing virtual address as argument. Vis Versa is possible by fucntion.
my_icontrol_interface.LocalLBVirtualServer.get_destination("vs_test")...
Aug 09, 2011
You are on the right track. With external data groups you need to treat them like flies and use the ConfigSync download/upload_file commands and edit the file contents locally. The logic is really up to you on how you manipulate the content of the file when you have it locally. Check out the PerlConfigSync sample in the iControl codeshare on how to download/upload files.
http://devcentral.f5.com/wiki/iControl.PerlConfigSync.ashx
-Joe
I'm not quite sure what your question is - are you asking for help understanding what your current RewriteRule does (it seems to rewrite "/" to "/ptg/rm"), or are you asking how to implement the same rule in an iRule (or ltm policy), or is the question something else ?
If you were to use a policy, it would be something like this:
ltm policy rewriteurls { requires { http } rules { rewrite_root { actions { 0 { http-uri replace path /ptg/rm } } conditions { 0 { http-uri path values { / } } } ordinal 1 } } strategy first-match }
Does that help ?
- BKA_201457Feb 10, 2016
Nimbostratus
I know how to rewrite "/" to "/ptg/rm". I think I am over-thinking it. Thanks for the response. Made me realize that I was looking at it wrong. It just isnt working. Its working through the current reverse proxy configuration, but I cannot get it to work through the F5. I have plenty of others working through the F5, but this one seems different. I'll figure it out. Thanks again.