Nginx log

WBOY
Release: 2016-08-08 09:32:09
Original
982 people have browsed it

日 The logs in 日 in NGINX basically use the log_form log name to display the log and other types. The example is as follows:

Log_Format Main '$ remote_addr -$ remote_user [$ Time_local] "$ Request"' '$ Status $ Body_ bytes_SENT "$ http_referr" '

            '"$http_user_agent" "$http_x_forwarded_for"'                                 '"$upstream_http_host" "$upstream_addr"';

***Emphasis added ***

$upstream_addr represents the address after the reverse proxy. In addition, there are many parameters, please refer to: wiki's upstram modual

or nginx official website configuration

The above introduces the Nginx log, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template