handle custom port passed in HTTP_HOST