Forum Discussion
iRule which check uri or path contains
Hello all
I have the following case: If an URL contains: /wps/XMLServlet or /wps/pages/redirect.aspx, not do anything, else redirect to: https://www.mysite.com
My irule is the following
when HTTP_REQUEST { if { ([HTTP::uri] contains "/wps/XMLServlet") or [HTTP::uri] contains "/wps/pages/redirect.aspx")}{ } else { HTTP::redirect ";} }
When I try the irule with: https://www.abc.com/wps/XMLServlet or https://www.abc.com/wps/pages/redirect.aspx, it works well, but when I try: http://www.abc.com/wps/XMLServlet or http://www.abc.com/wps/pages show me the error: The connection was reset
¿Could you help me with this problem?
- Michael_Saleem1Mar 14, 2019
Cirrus
Hi Danny,
I noticed that from what you have stated, only the
URLs are working; when you try to test with theHTTPS
URLS you get a TCP reset. Correct?HTTPCould you confirm that you have a virtual server configured listening on port 80 which also has this iRule applied? (NOTE: this virtual server should NOT have any client or server SSL profiles applied)
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
