Fix for non-ssl browsing in nginx.

Not sure how backwards compatible this is.
Please see: http://stackoverflow.com/questions/8768946/dealing-with-nginx-400-the-plain-http-request-was-sent-to-https-port-error