Forum Discussion
hgaa_174869
Nimbostratus
Nov 28, 2014Virtual Server redirecting with iRule with a domain form
I have a Virtual Server(10.72.5.179) and this is redirecting to my Server(10.72.1.170).
This Server is running a application that only accept the redirection in the form of a domain and not IP.
...
nitass
Employee
Nov 28, 2014you can rewrite host header when sending traffic to server/pool member using "HTTP::header replace" or "HTTP::host" (in 11.5+) command.
HTTP::header
https://clouddocs.f5.com/api/irules/HTTP__header.html
HTTP::host
https://clouddocs.f5.com/api/irules/HTTP__host.html
anyway, if server hard-codes hostname (MySecondDomain.com) in response, you have to rewrite it back to original (MyFirstDomain.com) when sending the response to client (e.g. irule, stream profile, etc).
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