On another look don't report a bug. It must be some weird config in your server (probably some proxy/portforwarding config). PHP thinks it's running on port 443:
[SERVER_PORT] => 443
so DokuWiki works correctly, and you must compensate for your strange config with the baseurl option.