fixed regression in jag/cgi-port-redirection

which make all redirects fail when using port 443