SSL detection: annoyingly a difference of SERVER_PORT is all I have, so use it.