I was surprised to find that I could not find any information about the logging of the request protocol in the nginx access log. I usually use a server block for HTTP (80) and HTTPS (443) traffic and use a combined access log for both. I would like to indicate on each line in the access log if the request was over HTTP or HTTPS.
Is this possible, or do I need to use a separate server block for HTTPS and specify a separate access protocol for SSL?
Brian source
share