nginx四层代理日志配置

配置在stream段:

log_format proxy ‘$remote_addr [$time_local]‘
                ‘$protocol $status $bytes_sent $bytes_received‘
                ‘$session_time "$upstream_addr" ‘
                ‘"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"‘;
access_log /var/log/nginx/tcp-access.log proxy ;
error_log  /var/log/nginx/tcp-error.log warn ;

nginx四层代理日志配置

原文:http://blog.51cto.com/liuzhengwei521/2135449

人吐槽 人点赞

猜你喜欢

发表评论

用户名: 密码:
验证码: 匿名发表

你可以使用这些语言

查看评论:nginx四层代理日志配置