We are using the second configuration under the/usr/local/apache2.4/conf/extra/httpd-vhosts.conf configuration file, its log under/usr/local/apache2.4/logs/
#cat/usr/local/apache2.4/logs/111.com-access_log//view its log, get is not add-I when the head is added to the-I only display status code; Log details include: Source IP, time, behavior, Access to the domain name, HTTP version, status code
Log format can be customized and configured in the master configuration file
#vim/usr/local/apache2.4/conf/httpd.conf
The 2 log format is available in the configuration file, using the default common
%h indicates that source ip,%l and%u are users,%t is time,%r is behavior,%s represents status code,%B represents size
In addition to these features, there are also user-agent user agents, referer refers to a list of URLs that were searched before accessing it, and the sites you visited were logged
#vim/usr/local/apache2.4/conf/extra/httpd-vhosts.conf//configuration log format
Change Customlog "Logs/111.com-access_log" common to Customlog "Logs/111.com-access_log" combined
#/usr/local/apache2.4/bin/apachectl-t
#/usr/local/apache2.4/bin/apachectl Graceful
#cat/usr/local/apache2.4/logs/111.com-access_log
Apache Access Log