详细解释:nginx中ChsHttpLogModule模块配置及各个参数含义
来源:互联网 发布:淘宝分销怎么取消 编辑:程序博客网 时间:2024/05/29 11:14
ngx_http_log_module
实例:
log_format gzip '$remote_addr - $remote_user [$time_local] ': '"$request" $status $bytes_sent ': '"$http_referer" "$http_user_agent" "$gzip_ratio"';access_log /spool/logs/nginx-access.log gzip buffer=32k;
access_log
语法: access_log path [format [buffer=size | off ] 默认值: access_log log/access.log combined
作用域: http, server, location
指令 access_log 指派路径、格式和缓存大小。参数 "off" 将清除当前级别的所有 access_log 指令。如果未指定格式,则使用预置的 "combined" 格式。缓存不能大于能写入磁盘的文件的最大大小。在 FreeBSD 3.0-6.0 ,缓存大小无此限制。
log_format
语法: log_format name format [format ...]
默认值: log_format combined "..."
作用域: http server
Directive log_format describes the format of a log entry. Besides general variables in the format it is possible to use variables which exist only at the moment of record into the log:
$body_bytes_sent, the number of bytes, transmitted to client minus the response headers, variable is compatible with parameter %B of module Apache's mod_log_config (this was called $apache_bytes_sent, before version 0.3.10)
$bytes_sent, the number of bytes, transmitted to client
$connection, the number of connection
$msec, the time with an accuracy to microseconds at the moment of the log entry
$pipe, "p" if request was pipelining
$request_length, the length of the body of the request
$request_time, the time of working on request in seconds
$status, status of answer
$time_local, local time into common log format.
The headers, transmitted to client, begin from the prefix "sent_http_", for example, $sent_http_content_range.
In the configuration there is always a predetermined format "combined":
log_format combined '$remote_addr - $remote_user [$time_local] ': '"$request" $status $apache_bytes_sent ': '"$http_referer" "$http_user_agent"';
原始俄文文档:http://sysoev.ru/nginx/docs/http/ngx_http_log_module.html
- 详细解释:nginx中ChsHttpLogModule模块配置及各个参数含义
- 详细解释:nginx中Nginx Main Module(主模块)配置及各个参数含义
- 详细解释:nginx中ngx_http_access_module模块(HTTP Access 模块)配置及各个参数含义
- 详细解释:nginx中ngx_http_auth_basic_module模块(HTTP Auth Basic 模块)配置及各个参数含义 .
- 详细解释:nginx中ChsHttpUpstreamModule模块配置及各个参数含义
- 详细解释:nginx中ngx_http_headers_module模块配置及各个参数含义
- 详细解释:nginx中ngx_http_rewrite_module模块配置及各个参数含义
- 详细解释:nginx中ChsHttpIndexModule模块配置及各个参数含义
- 详细解释:nginx中事件模块(Events Module)配置及各个参数含义 .
- 详细解释:nginx中ChsHttpProxyModule模块各项配置及其含义
- 详细解释:nginx中gzip的各项配置以及配置参数的意思详解
- 详细解释了sysctl的各个参数
- explain各个参数的状态及含义
- nginx location配置详细解释
- nginx location配置详细解释
- nginx location配置详细解释
- nginx配置解释及优化
- Hbase参数配置及含义
- 最长连续回文串(Longest Palindromic Substring)
- hp-ux 11g RAC asm 添加磁盘
- android应用之SQLite数据库
- 查看oracle锁表
- u-boot for tiny210 ver1.0(by liukun321咕唧咕唧)
- 详细解释:nginx中ChsHttpLogModule模块配置及各个参数含义
- 2012年6月16日四六级作文中一定能用到的句子
- 关于在jsp里面获取session
- 查看oracle最大连接数
- 一些技术杂题
- 关于多结果集的存储过程的处理
- 二叉树的遍历(Java实现)
- 性能测试、负载测试、压力测试 区别
- 使用jquery实现基于browser的打印