WIP: [ticket/10795] Fix Azure compatibility

The azure load balancer reports incorrect ports to php

http://tracker.phpbb.com/browse/PHPBB3-10795