Forum Discussion
Robberhines_120
Nimbostratus
Mar 13, 2017Reverse Proxy Redirect
First off apologies that this has been asked and answered before but I can't seem to get it work correctly, so maybe I am not searching correctly.
So the pretty simple explanation of what we ar...
Robberhines_120
Nimbostratus
Mar 13, 2017Sorry I should have added what I have so far:
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] == "www.domain.com") and (([string tolower [HTTP::uri]] contains "/locations")) } {
log local0. "Test Redirect iRule Triggered"
HTTP::redirect "locations.domain.com[HTTP::path]"
log local0. "[HTTP::host][HTTP::path]"
}
}
So what I have naturally is a redirect that catches /locations but I am unsure the next steps to make the F5 just get the contents of http://locations.domain.com to make it still look like its coming from http://www.domain.com/locations
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