alhall_3584
Aug 20, 2012Nimbostratus
iRule to redirect
I'm new at this and I trying to redirect an https (443) request to an Apache/Tomcat server with the url of . When I try to connect to it with I get an error. Please assist. Thanks!
http://xxx.x.xxx.26:8080/vminet.html
The above iRules all are built with the URI == / not vminet.html if you need it to redirect when equaled to vminet.html then use the following
when HTTP_REQUEST {
if { [HTTP::uri] equals "/vminet.html" } {
HTTP::uri "/site.html"
}
You can put a logging statement in your iRUle to log the URI and make and what you are matching on
log local0. "URI == [HTTP::uri] Matching == /vminet.html"