Forum Discussion
Dharmendra_2243
Nimbostratus
Oct 08, 2009DBI:iRule when match with string,divert to pool
1. Create new pool for the sitemap seo project with the following parameters. Nodes (yeswebp1, yeswebp2, and yeswebp3) Port ( 1910 on all three nodes)
2. Create the i-Rule on BigIp to redirect traffic to the newly created pool above on the /robots.txt match case for all the UNIWEB production clubs.
- hoolio
Cirrostratus
Hi, - Dharmendra_2243
Nimbostratus
Question : - hoolio
Cirrostratus
Here is an example which selects a separate pool for requests for /robots.txt. All other requests will be sent to the default pool configured on the VIP:when CLIENT_ACCEPTED { Save default pool name set default_pool [LB::server pool] } when HTTP_REQUEST { Check requested path switch [HTTP::path] { "/robots.txt" { Request is for /robots.txt, use different pool pool robots_pool } default { Request not for /robots.txt, use default pool pool $default_pool } } }
- Dharmendra_2243
Nimbostratus
I have other iRules also which needs to be applied. - hoolio
Cirrostratus
You might want to add this iRule logic to the existing iRule(s). Or you might need to set a local variable in this iRule which the other iRule(s) reference to know not to select the pool. If you can post the other iRules you're using we can provide suggestions on using them together.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects