Forum Discussion
N_67263
Nimbostratus
Feb 03, 2014Help getting an iRule created.
Folks,
My use case here is to have requests going to a site "abc.test.com" to "xyz.test.com". We can achieve this by creating a CNAME for "abc.test.com" as "xyz.bmc.com". The users have "abc.tes...
Lee_Payne_53457
Cirrostratus
Feb 03, 2014You can change the host header going in and out of the LTM, however you'll still get cert errors unless the cert has both host names in it (The SSL host name check happens before the LTM iRules get involved), it should work fine for HTTP only then. You could also have a redirect which would send people to the correct URL.
when HTTP_RESPONSE { HTTP::header replace Location [string map -nocase {xyz.test.com abc.test.com} [HTTP::header value Location]] }
when HTTP_REQUEST {
HTTP::header replace Host [string map -nocase {abc.test.com xyz.test.com} [HTTP::header value Host]]
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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