Forum Discussion
irule which check if uri contains services
Hi I am new to iRule, i have this irule redirecting http trafic to WWW_Maximo_pool:
when HTTP_REQUEST { if { [HTTP::uri] contains "MAXPROD" } { pool WWW_Maximo_pool } else { HTTP::redirect https://[HTTP::host][HTTP::uri] } }
i want it to do the same redirect for HTTPS trafic, so i did the follwoing modification:
when HTTP_REQUEST or HTTPS_REQUEST { if { [HTTP::uri] contains "MAXPROD" } or { [HTTPS::uri] contains "MAXPROD" } { pool WWW_Maximo_pool } else { HTTP::redirect https://[HTTP::host][HTTP::uri] } }
but that gave me a compilation error. Any help is highly appreciated.
Thanks. Eddy.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
