Stan_Hurton_111
Nov 30, 2016Nimbostratus
Redirect based on incoming port?
I'm trying to accomplish the following with an irule, without much luck. Can anyone help me achieve the following:
- If incoming request to port 8083 or 444 starts with '/sample', then forward request to url https://hostname.domain.com:7151
- If incoming request to port 8084 or 446 starts with '/sample', then forward request to url http://hostname.domain.com:7152
- If incoming request to port 8085 or 447 starts with '/sample', then forward request to url http://hostname.domain.com:7153
- If incoming request to port 8086 or 448 starts with '/sample', then forward request to url http://hostname.domain.com:7154
- If incoming request to port 80 or 443 starts with '/sample', then forward request to url http://hostname.domain.com:7150
Thanks, SH