Forum Discussion
Irule query
Hi, I have a webfarm redirection VIP on F5. Most of the legacy urls are redirected by webservices./middle ware team on these servers. But for one request, they were not able to do redirection, hence i have return irule and it is working fine.
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
set uri [string tolower [HTTP::uri]]
if { $host == "abc" && $uri == "/" } {
HTTP::redirect "; }
elseif { $host == "; && $uri == "/support" }
{ HTTP::redirect ";
}
Now my question is what if other url lets say or [] are trying to access , will these get redirected to backend webservers, does, i rule allows it to pass to nodes to process request, if above irule criteria doesn't match or i need to added any more statement in irule to allow other https/http request to sent to webserver backend to process request.
- HamishCirrocumulus
You may want to edit your question and put your iRUle in a code block. If it's easier to read you're more likely to get someone to take the trouble to go through it.
- Stanislas_Piro2Cumulonimbus
This condition won’t work because of the semi colon after closing double quote
elseif { $host == "www.abc.com"; && $uri == "/support" }
Recent Discussions
Related Content
* 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