This logging configuration, named geoproxy, USES a number of nginx variables to demonstrate nginx logging capabilities. '$upstream_status $upstream_response_time ' '$geoip_city_country_code3 $geoip_region ' To accurately record access information, you need to customize a more complete access log format, as shown below: By default, in the access log bit logs/ access.log, information is written to the log in a predefined combination format. Nginx writes information about the client request to the access log immediately after the request is processed. When the buffer is full or the time for a timed write is up, the log can be written again. Based on this situation, the nginx log buffer can be opened. For logging behavior, if each disk operation is carried out, more resources will be consumed. In addition, nginx also has its own error log, which is convenient for operation and maintenance personnel to debug nginx. If you want to statistics website source of access to information, can use php access to information, the form of record to the database, also can be used directly nginx provide access log, to record the site access details, the administrator can through the analysis of the access log of nginx, to analyze the user's access source, access behavior details, web page access heat, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |