Reputation: 43673
By default, Apache
records an absolute URI in access_log
and error_log
file. Because I have multiple hosts (domains, subdomains) pointed to same directory and logs for all such hosts go into one access and error log file, I would like to configure (if possible) Apache to include host information within such log records. Is there a way to do so?
Upvotes: 0
Views: 86
Reputation: 177
Add in LogFormat
%{Host}i
or %v
http://httpd.apache.org/docs/current/mod/mod_log_config.html#formats
Upvotes: 1