Logging the request protocol in nginx? It's a bit hidden in the docs, but you can use any of the common variables. This includes $scheme.