nginx has the
$scheme variable usable in its
%H is the request protocol (e.g. "HTTP/1.1").
How can I do the same with Apache?
One way to do it is to have two conditional
I have also tried using
Define your log output and add %H to it. This is the same for Apache.
So, you build a
and add the name of the LogFormat (in this case "common") to the end of your logfile call
For some reason I could not get the examples above to work, so found another way: you can add 2 rewrite rules into your configuration as follows:
Then add this into your LogFormat definition.