irule uri replace
4 TopicsiRule with host and uri match condition
I need an iRule that should check host and uri combination and redirect to appropriate pool. Below is what I have but its not working. when HTTP_REQUEST { set pool [class match -value -- [HTTP::host][HTTP::uri] equals test_url_attachment] if {$pool ne ""} { pool $pool } } example1.com/attachment should go to example1.com pool example2.com/attachment should go to example2.com pool example3.com/attachment should go to example3.com pool test_url_attachment is the datagroup that has string and value as below -- example1.com/attachment* -- value example1.com example2.com/attachment* -- value example2.com example3.com/attachment* -- value example3.com URI will remain common for all and I need to have the iRule this way based on URI, as it works only on a specific port (our app requirement). I have another iRule that maps based on just host to appr pool on diff port. Please advise on how to the syntax as the request is not reaching the pool with what I have.399Views0likes1CommentHTTP URI Replace & Pool selection
Hi All, I have an irule that Checks for incoming URI and selects a pool and replaces uri with new one. I'm not sure what i'm doing wrong, but here is my requirement I have a VIP with dns https://example.mycompany.com. Simple VIP with access policy that uses SAML authentication. No pool is assigned to the VIP since i'm using irule to select the pool. when i go to https://example.mycompany.com/abc/def/blahblah, authentication is successful and uri is changing to https://example.mycompany.com/abcdef but receiving a "connection reset" on the browser page. FYI, All pools are UP(members are listening on 80 or 8080). There is no traffic details when i go to certain pool statistics. I believe pool selection is not happening. Any help is greatly appreciated! Thanks Below is my iRule. when HTTP_REQUEST { switch [string tolower [HTTP::uri]] { "/abc/def/blahblah" { pool abc_pool HTTP::uri "/abcdef" } "/UVW/XYZ/blahblah" { pool uvw_pool HTTP::uri "/UVWXYZ" } } }273Views0likes2CommentsInternet Explorer This page is accessing information that is not under its control
Hello, We recently enabled SSL offloading for an application. Intermittently the users are receiving the warning error shown in the picture by Internet Explorer when accessing certain forms. Do any of you have bumped before with something like this. I have the feeling that the application is calling a different domain name in the back-end to reach information and therefore Internet Explorer is warning about it but I would like to know if there is a way to prevent this by using a URI re-write or any other method. Can I get some recommendations on where to continue looking or maybe a way that you have used to fix this? Thank you.257Views0likes1CommentiRule redirect to https if condition doesn't match
I need to send traffic to appr pools on port 80 based on a specific Host and URI combination and all other traffic should get redirected to https irrespective of Host and URI combination. I have below iRule that works fine for my port 80 work. Please suggest what to append to redirect traffic to https otherwise. Redirect to https should be based on [HTTP::host] when HTTP_REQUEST { switch -glob [HTTP::host][HTTP::uri] { "sample1.ehosts.net/word1/word2*" { pool sample1.ehosts.net_word } "sample2.ehosts.net/word1/word2*" { pool sample2.ehosts.net_word } "sample3.ehosts.net/word1/word2*" { pool sample3.ehosts.net_word } } }239Views0likes1Comment