Linux 12 week three lessons (April 25) Notes

Source: Internet
Author: User
12 weeks three sessions (April 25)
12.10 Nginx Access Log
12.11 Nginx Log Cutting
12.12 static files do not log logs and expire time

12.10 Nginx Access Log

The format of the configuration file is in the main configuration file.

Search for log to find the following paragraph, which is used to define the format.

Public network IP, in Baidu, search IP, view.

Defining Access Log paths

Open File

Under}, add a row to read as follows:

12.11 Nginx Log Cutting

Edit File

Add the following content

Process of execution

To delete the format of a log

Finish writing the log and write a script.

12.12 static files do not log logs and expire time

Write the following content.

The test is as follows:

JS and GIF do not log logs.

Linux 12 week three lessons (April 25) Notes

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.