pool selection
4 TopicsPool Selection Based on URI and URL Modification
I'm trying to write an iRule that will redirect traffic to different pools based on URI, as well as altering the URL to remove the URI after the traffic is redirected to the correct pool. I think I have the initial pool redirect figured out, but I can't figure out how to do that AND THEN shorten the URL. Here are my examples: https://test.test.com/url1 to pool1 then remove /url1 https://test.test.com/url2 to pool2 then remove /url2 https://test.test.com/url3 to pool3 then remove /url3 https://test.test.com/url4 to pool4 then remove /url4 https://test.test.com/ to pool5 This is what I ahve for the pool selection/redirection: when HTTP_REQUEST { switch -glob -- [string tolower [HTTP::path]] { "/url1*" { pool /Common/Pool1 return } "/url2*" { pool /Common/Pool2 return } "/url3*" { pool /Common/Pool3 return } "/url4*" { pool /Common/Pool4 return } "/*" { pool /Common/Pool5 return } } Thanks all!!599Views0likes4CommentsHTTPS redirect to different pools
Hi Guys, I'm trying to use an iRule to redirect traffic based on the URL. Let me give you the example: The Virtual server is on port 443, but the pools are on 8443 and 9443. https://10.10.10.10/blue goto pool_b goto pool_r The default pool in the virtual server is pool_b_8443. Traffic gets to there no problem. However, I can not seem to get this iRule to work. I'm not an expert with BIG IP LTM so please go easy on me :-) Thank you Euan399Views0likes2CommentsConfiguring GTM to provide DNS service based on port
Hi, I have a scenario, wherein we have to load balance an app between two DCs which are geographically apart. Now, this app would listen on multiple ports viz., 80,4500,4510 etc., in total around 10 ports. On the LTM level of both locations, I would configure corresponding VS's with same IP address but with different ports as requested. But I'm confused on how to load balance the app based on specific port on GTM level cos all I know is GTM would provide DNS service and sends the requests to the active LTM in the pool (pool configured under Wide IP). Could one of you suggest me on this or is there a way to write policies on GTM to check for which port the requests coming in and direct to certain pool (if I configure pool based on port) in which only one VS LTM would be active. Br,MSK349Views0likes1CommentPool selection using iRule
Hello, An application is hosted on ports 8443 and 8445. I am trying to achieve the following using iRule. URL attempted is http://abc.domain.com It should be redirected to https://abc.domain.com/123/456, and the traffic should be sent to POOL-1. Pages from https://abc.domain.com/123/789 are also attempted, which also, should also be sent to POOL-1. The login page is now loaded. After keying in the credentials, it goes to https://abc.domain.com/999, which should be sent to POOL-2. Tried the following 2 iRules. Observation is that the redirect to https://abc.domain.com/123/456 is attempted, but fails. =-=-= when HTTP_REQUEST { if {[HTTP::uri] equals "/"}{HTTP::redirect "https://[HTTP::host]/123/456" pool POOL-1} elseif {[HTTP::uri] ends_with "/999/*"}{POOL-2} } =-=-= when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { / {HTTP::redirect "https://[HTTP::host]/123/456"} /123/456 {pool POOL-1} /999/* {pool POOL-2} } } =-=-= when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/999/*" { pool POOL-2 } "/" {HTTP::redirect "https://[HTTP::host]/123/456"} } } and in this case, set the default pool to POOL-1 in the virtual server. =-=-= Am I making any mistakes in the iRules? -Jimmy235Views0likes1Comment