Forum Discussion
Steve_87971
Nimbostratus
May 09, 2011iRule to switch hostnames to www.
Hi all, this is my first post and I'm not an F5 legend so please bare with me if this is obvious.
Our customer facing websites are published with a full www URL - i.e. www.mycompany.com. This DN...
Steve_87971
Nimbostratus
May 09, 2011Hi Michael, thank you for responding to me.
Our VSs exist on the same LB and each have their own pool exactly as you suggest so changing the destination pool would absolutely work for us in a maintenance scenario, and using an iRule to check healthy servers >= 1 or send traffic to a backup pool are both brilliant for resilience and reliability.
That said, the backup pool will shortly be moved onto seperate F5s, and then into a totally separate datacentre (we don't yet have an F5 GTM to take care of this). We've used the DNS / CNAME trick to give us this ability to flick traffic to another group of machines quickly, but we suffer with Google ranking because our content appears under two URLs.
The rule must inspect the full URL and re-write to the www version if required, basically:
IF hostname = (live.mydomain.com OR backup.mydomain.com) REDIRECT to www.mydomain.com ELSE carry on as normal.
The rule I've written does seem to do this - I've applied it to both the live and backup VS and tested - but I'm wondering whether it could be simplified with an OR statement...
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