Forum Discussion

Gordon_O_138935's avatar
Gordon_O_138935
Icon for Nimbostratus rankNimbostratus
Feb 05, 2018

HTTP Redirect retaining source Port

We have an application server that, depending on the port, will provide a different applications web page. When I try to force https the port is getting removed resulting in the Default page showing and not the correct one. Is there a way to have the irule keep the port while doing the HTTP::redirect to https?

 

Current rule: when HTTP_REQUEST { HTTP::redirect "https://[HTTP::host][HTTP::uri]" log "[HTTP::header Connection]" TCP::close }

 

Example: redirected to

 

TIA Gordon