DWillis_251723
Oct 03, 2016Nimbostratus
Port 443 iRule Redirect to port 8443
I am created an iRule to forward requests from 443 to port 8443 but it does not seem to be redirecting. There are 2 different urls inlcluded in the iRule. I setup 2 virtual servers. 1 is listening on port 443 with iRule applied and the other is listening on port 8443. Here is an example of the iRule I created.
when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "https://mysite.org/CMC" } { HTTP::redirect "https://mysite.org:8443/BOE/CMC" } if { [string tolower [HTTP::host]] equals "https://mysite.org/BI" } { HTTP::redirect "https://mysite.org:8443/BOE/BI" } { } } Did I write this incorrectly? Any help is greatly appreciated.