I would grep the code for IndexRedirectURL to find the call to ad_returnredirect and then add the switch -allow_complete_url.
My opinion is that we can always trust the configured value, so a redirect to another port is possible.