Forum Discussion
RaRye
Nimbostratus
Dec 17, 2021how to modify the _sys_https_redirect to exempt a specific uri and use a specific pool or node for that uri?
I am trying to modify the _sys_https_redirect to
- exempt a specific uri in my site
- browse that specific uri in HTTP
- use a specific pool for that uri
- retains the function of the _sys_https_redirect on all the rest of URIs in my site
but I can't make it work.
when HTTP_REQUEST {
if { ([HTTP::uri] eq "abc.com/directory/directory/") }
{
pool pool-A
}
else
{ HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] }
}
1 Reply
Sort By
Please try below irule and confirm if it works!
when HTTP_REQUEST { if { ([HTTP::uri] contains "directory/directory") } { pool pool-A } else { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] } }
NOTE- I have kept redirect statement as it is.
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