Preserve Port on HTTP Redirect

gprintzgprintz Member

Hi Everyone:

We have an interesting issue we're trying to tackle. We have a Virtual Server with multiple virtual ports (http:80, https:443, https:4444, https:4445, etc). We currently have a working redirect script (similar to a lot of posts on here) for 80 to 443 and it is working fine for several of our virtual servers:


HTTP::redirect "https://[HTTP::host][HTTP::uri]"


In this situation however, we have servers on the backend that are configured for multiple applications on different ports (each in separate service groups) with no discerning URI differences:

sg#1:4444 consists of




When hitting the Virtual Server via http on one of these non-standard ports, no redirect occurs using the above script.

"" should redirect to ""

Right now, users must explicitly specify 'https://'. Is there a reason this is happening? Does the script need to be adjusted, or is there another way to approach this via an HTTP template? Hopefully I'm explaining everything correctly.


Sign In or Register to comment.