Forum Discussion
Mr__T
Cirrus
Feb 23, 2023Irule Vs rewrite - FQDN hostname
Hi All, New to IRules, and rewrites. Clients will type appname.domain.com, I need to redirect to another URL (working via IRule) that the server understands but keep the friendly name appname.doma...
Mr__T
Cirrus
Mar 13, 2023Only 1 server in the pool. We tried to get the app owners to correct this at the application but they could not.
So the server is expecting https//:servername:8443/etc/ etc/etc/landingpage. Cosmetically, the app owner does not want to see unfriendly name.
Paulius
MVP
Mar 13, 2023Mr__T The following is the base iRule and you can continue to add on additional "elseif" to this to account for additional applications and change the port "8080" to the respective port.
when HTTP_REQUEST priority 500 {
if {[string tolower [HTTP::host]] == "example.com"} {
HTTP::host [string map {"example.com" "servername.example.com:8080"}[HTTP::host]]
}
}
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