vanilla/vanilla — pull request #2365 by jportoles (2014-12-26 20:18:52+00:00)
Title: Updated class.request.php to support non-standard ports

Depending on the source used to fill it the 'Host' environment variable, it may already contain the port. This change makes sure the port is added only if not already present, since otherwise non Gdn_Request::Url could return Host:port:port in those scenarios.

I've spent two hours trying to figure out why my local installation on port 86 was failing with a blank screen; eventually I figured out it wasn't my nginx configuration what was failing but vanilla itself, as it tried to redirect to host:86:86/index.php?p=/dashboard/setup upon accessing index.php.