Forum Discussion
Brad_Stapleton
Nimbostratus
4 years agoURL Rewrite/ProxyPass Functionality
All: I am looking for a way to do ProxyPass like functionality inside an irule or other LTM module. We have an application running in Azure that we want to forward traffic to, but need to main...
- 4 years ago
you would need to create a pool with a FQDN node of using Azure site "app1.azurewebsites.com". Assign that pool to VIP of abc.com. Add below iRule to the abc.com VIP for Host header rewrite. This should do the trick.
when HTTP_REQUEST { HTTP::header replace "Host" "app1.azurewebsites.com" } when HTTP_RESPONSE { HTTP::header replace Location [string map -nocase {app1.azurewebsites.com abc.com} [HTTP::header Location]] }
spalande
Nacreous
4 years agoyou would need to create a pool with a FQDN node of using Azure site "app1.azurewebsites.com". Assign that pool to VIP of abc.com. Add below iRule to the abc.com VIP for Host header rewrite. This should do the trick.
when HTTP_REQUEST {
HTTP::header replace "Host" "app1.azurewebsites.com"
}
when HTTP_RESPONSE {
HTTP::header replace Location [string map -nocase {app1.azurewebsites.com abc.com}
[HTTP::header Location]]
}
- Brad_Stapleton4 years ago
Nimbostratus
Thanks so much !
- LiefZimmerman4 years ago
Admin
Hope this gets it sorted for you .
If nailed it please click Select As Best.
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