I'd like to add a CustomLog
directive to my apache configuration to log the full URL requested (or at least the host portion of the URL). I have several domains being handled by the same instance of apache, and would like to be able to distinguish the domains in the logs (as now all I see is "GET /"). I see in the documentation on LogFormat it lists %U
to print the path portion of the URL, but I'm looking for the host.
%{Host}i
work even for HTTP/1.0?%V
looks right at first glance, thanks! – jrdioko Jun 23 '11 at 17:49%V
will be identical to%{Host}i
ifUseCanonicalName
is disabled? – jrdioko Jun 23 '11 at 18:29%V
will useServerName
if there is noHost
header. – larsks Jun 23 '11 at 18:46