Apache Access Log

Source: Internet
Author: User
Tags apache access log

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.