Forum Discussion
F5 iRule for header and url rewrite/redirect
Hello,
I want to access from external https://free-busy.company.com/ews/exchange.asmx and https://free-busy.company.com/autodiscover/autodiscover.svc as well this would redirect via firewall to a internal VIP but just https://free-busy.company.com to the internal https://mail.int.company.com/ this VIP has a pool and in this pool is the exchange server. (from internal I can access https://mail.int.company.com/ews/exchange.asmx, https://mail.int.company.com/autodiscover/autodiscover.svc) Now I want to access the both external links and redirct to the both internal link and I think I need a host header rewirte as well for this ? Can someone give me a iRule with good performance for this scenario ?
THX Manuel
1 Reply
- Stephan_Mierau
Employee
it is better to do this rewrite with a LTM policy, otherwise this should help
when HTTP_REQUEST {
if { [HTTP::header host] eq "www.abc.com" } {
HTTP::header replace Host "www.xyz.com"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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