Marcel_Jorba_62
Jul 26, 2011Nimbostratus
How to block a specific URL
My setup is balancing 2 servers for all ports.
These servers host a web server
I need to block a very specific URL on these servers, blocking it or forwarding the requester user to an other URL outside the load balancer. This second option has been my option by means of an irule.
An iRule like this should work for me:
when HTTP_REQUEST { if { [HTTP::uri] equals "myurl"} { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
If I try to setup this, an http profile is required.
If I select an http profile, my application stops working (It uses also non http port)
My questions:
a) Is there any other way to block an URL without iRules?
b) Any help with my iRules approach?
Thanks in advance
Marcel