Nginx日志格式说明

作者:系统管理员    类别:Linux     日期:2021-05-13 08:23:48    阅读:23次    消耗积分:0
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

$remote_addr #表示客户端地址
$remote_user #http客户端请求nginx认证用户名
$time_local #Nginx的时间
$request #Request请求行, GET等方法、http协议版本
$status #respoence返回状态码
$body_bytes_sent #从服务端响应给客户端body信息大小
$http_referer #http上一级页面, 防盗链、用户行为分析
$http_user_agent #http头部信息, 客户端访问设备
$http_x_forwarded_for #http请求携带的http信息

你可能也喜欢————

图片加载中...

Linux安装部署SVN

更新时间:2021-04-06 12:45:11


图片加载中...

WordPress优化

更新时间:2021-05-12 23:26:03


图片加载中...

Windows安装Linux子系统

更新时间:2021-04-17 20:28:59


图片加载中...

修改ssh默认端口

更新时间:2021-04-13 18:27:59


图片加载中...

Linux回收站

更新时间:2021-04-10 23:43:48


图片加载中...

htpasswd命令

更新时间:2021-04-06 03:24:08


图片加载中...

Ubuntu安装google-chrome

更新时间:2021-05-10 07:04:04


图片加载中...

服务器压力测试

更新时间:2021-04-28 19:03:31


图片加载中...

WSL挂载移动硬盘或U盘

更新时间:2021-04-24 10:12:30


有0条评论——


暂无评论!


发表评论——

提示:登录后才能发表评论,并且享受积分哦!