Skip to content

Commit

Permalink
Merge pull request #40 from xiaofei0800/develop, close #13
Browse files Browse the repository at this point in the history
Add configuration docs of mod_access
  • Loading branch information
iyangsj authored Sep 26, 2019
2 parents a2bb0b8 + 971c166 commit 59f321b
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/en_us/configuration/mod_access/mod_access.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Introduction

The mod_access module writes request logs and session logs in the specified format.

# Configuration

- Module config file

conf/mod_access/mod_access.conf

```
[Log]
# filename prefix for log
LogPrefix = access
# access log directory
LogDir = ./
# log rotate interval: M/H/D/MIDNIGHT/NEXTHOUR
RotateWhen = NEXTHOUR
# max number of rotated log files
BackupCount = 2
[Template]
# template of request log
RequestTemplate = "REQUEST_LOG $time clientip: $remote_addr serverip: $server_addr host: $host product: $product user_agent: ${User-Agent}req_header status: $status_code error: $error"
# template of session log
SessionTemplate = "SESSION_LOG $time clientip: $ses_clientip start_time: $ses_start_time end_time: $ses_end_time overhead: $ses_overhead read_total: $ses_read_total write_total: $ses_write_total keepalive_num: $ses_keepalive_num error: $ses_error"
```
32 changes: 32 additions & 0 deletions docs/zh_cn/configuration/mod_access/mod_access.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 简介

mod_access模块以特定格式记录请求日志和会话日志。

# 配置

- 模块配置文件

conf/mod_access/mod_access.conf

```
[Log]
# filename prefix for log
LogPrefix = access
# access log directory
LogDir = ./
# log rotate interval: M/H/D/MIDNIGHT/NEXTHOUR
RotateWhen = NEXTHOUR
# max number of rotated log files
BackupCount = 2
[Template]
# template of request log
RequestTemplate = "REQUEST_LOG $time clientip: $remote_addr serverip: $server_addr host: $host product: $product user_agent: ${User-Agent}req_header status: $status_code error: $error"
# template of session log
SessionTemplate = "SESSION_LOG $time clientip: $ses_clientip start_time: $ses_start_time end_time: $ses_end_time overhead: $ses_overhead read_total: $ses_read_total write_total: $ses_write_total keepalive_num: $ses_keepalive_num error: $ses_error"
```

0 comments on commit 59f321b

Please sign in to comment.