append uri
3 TopicsRedirect to pool member based on URI with persistence
We are implementing Kronos 8 with SSL offloading on our LTM. The SSL offload options in Kronos forces all traffic through the LTM so our Kronos admin can no longer hit the application directly on the individual servers. To accomplish this I need to direct traffic directly to the pool member based on URI. I also need to append /wfc/logon to all URIs. I have built an iRule based on examples I have found here, but it doesn't work correctly. It lands on the initial logon page correctly, but after the logon doesn't persist to the pool member. Process I am trying to accomplish: http://kronos.xxx.edu/ap1 -> https://kronos.xxx.edu/wfc/logon on pool member 1 http://kronos.xxx.edu/ap2 -> https://kronos.xxx.edu/wfc/logon on pool member 2 http://kronos.xxx.edu/ -> https://kronos.xxx.edu/wfc/logon default LB for clients Allow server selection via uri when HTTP_REQUEST { if {[HTTP::uri] contains "ap1" } { HTTP::uri "/wfc/logon" pool Kronos member 192.168.1.121 80 } elseif {[HTTP::uri] contains "ap2"} { HTTP::uri "/wfc/logon" pool Kronos member 192.168.1.122 80 } elseif {[HTTP::uri] eq "/"} { HTTP::uri "/wfc/logon" pool Kronos } } Any suggestions are greatly appreciated.764Views0likes2CommentsIrule to amend URI
Hi, I'm looking to do something like this: https://www.mysite.com/path/search?SomeDynameicText rewrite to something like this https://www.mysite.com/path/search/v1?SomeDynameicText I have got the following, but it doesn;t seem to work when HTTP_REQUEST { if { [HTTP::uri] contains "/search?" } { HTTP::redirect "https://[HTTP::host]/search/v1?[HTTP::uri]" } }290Views0likes2Commentsneed help to create an irule to append an uri and redirect with conditions...
Hi all, need ur help pls. I have an URL: abc.test.com, pointing to http vip with mapped pool-1111. I also have another pool-2222 created with same members but different ports. pool-2222 is not mapped to any VIP. Am trying to create an irule so that when users try abc.test.com, it shud be rewritten as abc.test.com/test1 and forwarded to mapped pool-1111. Also additionally, only when users try abc.test.com/test2, it shud send to pool-2222. All connections are http only. Could someone pls guide me here... any help is greatly appreciated.. thanks..467Views0likes10Comments