Forum Discussion
Bryce_Johnson_1
Nimbostratus
Jun 07, 2006http redirect based on active pool name
Hello,
I am new to scripting iRules on the BigIP. I am looking for a rules to redirect to a non-secure URL when the default pool is set to a specific name.
for example:
when HTTP_REQUEST {
if [pool equals pool_name_here]
HTTP::redirect "http://www.urlgoeshere.com"
}
}
Should this be as simple as it sounds? Please advise.
Thanks,
Bryce Johnson
2 Replies
- You might want to post this over on the iRules forum. iControl is our remote management API.
-Joe - Deb_Allen_18Historic F5 AccountThere is no way to directly extract the default pool from the config with a rule.
You could instead specify a fallback host in the virtual definition, then remove the pool as a resource when you want to force the redirect.
/deb
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
