Forum Discussion
raj_Kumar_19166
Nimbostratus
Feb 09, 2016we have 3 external web urls which will come on our frontend f5 and redirect to internal web urls and use as a revers proxy
we have 3 external web urls which will come on our frontend f5
and redirect to internal web urls and use as a revers proxy
https://site3Ex.com
should redirect to
http://site3In.c...
Kai_Wilke
MVP
Feb 10, 2016Hi Raj_Kumar,
it will work, but I would recommend to change the syntax slightly, so that you execute the
[string tolower] formating just once per HTTP_REQUEST to save some CPU cycles...
when HTTP_REQUEST {
set low_host [string tolower [HTTP::host]]
if { $low_host equals "site1ex.com" } then {
HTTP::redirect "http://site1in.com"
}
elseif { $low_host equals "site2ex.com" } then {
HTTP::redirect "http://site2in.com"
}
elseif { $low_host equals "site3ex.com" } then {
HTTP::redirect "http://site3in.com"
}
}
Cheers, Kai
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