illustrate: There are two main types of nginx logs: access logs and error logs. The access log records every request from the client to access nginx, including information such as user geographical origin, jump source, terminal used, number of visits to a certain URL, etc. The access log format can be customized; the error log records the log when an error occurs when the client accesses nginx. The format does not support customization. Through the error log, you can get the performance bottleneck of a certain service or server in the system. Both logs can be disabled selectively. Access log [Access.log]
Online example:
Offline test ($http_referer):
Note: $http_referer is related to redirection. Error log [Error.log]
The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: MySQL 5.5.27 winx64 installation and configuration method graphic tutorial
>>: How to generate PDF and download it in Vue front-end
Preface In today's increasingly convenient In...
The reason why Docker is so popular nowadays is m...
Today, when I was using VMware to install a new v...
Let’s not start with the introduction and get str...
Table of contents Query cache optimization Overvi...
When Docker starts a container, it specifies the ...
Table of contents 1. Brief description 2. Steps t...
Table of contents Preface Communication between t...
Download the installation package from the offici...
Composition API implements logic reuse steps: Ext...
1. What is mycat A completely open source large d...
How background-position affects the display of ba...
Table of contents 1. Introduction 2. Aggregation ...
Table of contents Implementing HTML Add CSS Imple...
Since enabling https access for the entire site, ...