Forum Discussion
Ram_381760
Nimbostratus
Feb 04, 2019external 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
Employee
Feb 06, 2019Try 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
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