This article is a mirror article of machine translation, please click here to jump to the original article.

View: 16093|Reply: 0

[Web] nginx access_log logs are completely closed

[Copy link]
Posted on 11/13/2017 12:22:24 PM | | | |
Recently, when configuring the local nginx development environment, I found a problem.When the server segment does not specify a access_log, and no access_log parameters are specified in the http segment, it will be written to the logs/access.log file by default, that is access_log the default value is "logs /access.log", and it is the access log of all servers. But I didn't find a default value for this configuration on the nginx website.
If we don't need it, add a line access_log off to the http segment; Then configure the logs you want to write in a specific server. I don't write logs in the development environment by default, that is, I don't configure any access_log, and I only open it when needed.
In the http segment of nginx, set the access log:








Previous:2017.11.13Server Failure Analysis
Next:.net/c# GZipStream data compression
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com