Forum Discussion
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!
Richard__Harlan
Aug 21, 2012Historic F5 Account
If you are using the iRule above they will not work with this request.
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"
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects