Forum Discussion
Does iRule support any port define for HTTP and HTTPS?
Are the servers providing the redirect to https://website.com:18100? Or are you wanting to do it on the F5?
If you are doing it on the f5: 1. create your http virtual on port 18100 2. add an irule with "when HTTP_REQUEST { HTTP::redirect "; }" 3. create your https virtual on port 18101
4. add an irule to that virtual with "when HTTP_REQUEST { HTTP::header insert WL-Proxy-Client-IP [getfield [IP::client_addr] "%" 1] }"
if the server is providing the redirect to https:://website.com:18100, then we need to do something additional, particularly if the backend https servers are listening on 18101. 1. server sends redirect to https://website.com:18100 2. request is received at F5 on https virtual server. Host header value is website.com:18100. 3. need to rewrite the host name prior to sending to server on backend. So add an irule to https virtual with the following lines:
when HTTP_REQUEST { HTTP::header insert WL-Proxy-Client-IP [getfield [IP::client_addr] "%" 1]} when HTTP_REQUEST_SEND { HTTP::host website.com:18101 }
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