Name
CustomLog
Synopsis
CustomLog nickname
Server config, virtual host
Not available in Apache v2
CustomLog
is a standard Apache directive (see
Chapter 10 ) to which Apache-SSL adds some extra
categories that can be logged:
-
{cipher}c
The name of the cipher being used for this connection.
-
{clientcert}c
The one-line version of the certificate presented by the client.
-
{errcode}c
If the client certificate verification failed, this is the SSLeay error code. In the case of success, a “-” will be logged.
-
{errstr}c
This is the SSLeay string corresponding to the error code.
-
{version}c
The version of SSL being used. If you are using SSLeay versions prior to 0.9.0, then this is simply a number: 2 for SSL2 or 3 for SSL3. For SSLeay Version 0.9.0 and later, it is a string, currently one of “SSL2,” “SSL3,” or “TLS1.”
Example
CustomLog logs/ssl_log "%t %{cipher}c %{clientcert}c %{errcode}c {%errstr}c"
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.