Forum Discussion
Ram_381760
Feb 04, 2019Nimbostratus
external domainname replace and uri masking
Hello Everyone,
I'm new to iRule and looking help on iRule on F5 BIG-IP which has successfully configured VIP with DNS (https://api-internal.net/docs) and able to resolve VIP using browser. The ...
PeteWhite
Feb 06, 2019Employee
Try this instead - it will change all redirects to be this host
when HTTP_RESPONSE {
if { [HTTP::header exists Location] } {
set path [URI::path [HTTP::header Location]]
set query [URI::query [HTTP::header Location]]
set location "https://my.host$path?$query"
HTTP::header replace Location $location
log local0. "Rewriting Location [HTTP::header Location] to $location"
}
}
Install and run this and check the logs in /var/log/ltm
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