nginx配置转发日志


http{
        include mime.types;
        default_type application/octet-stream;

        log_format main****
        ' $remote_user [$time_local]  $http_x_Forwarded_for $remote_addr  $request '
        '$http_x_forwarded_for '
        '$upstream_addr '
        'ups_resp_time: $upstream_response_time '
        'request_time: $request_time';

        access_log logs/access.log main;

        server{......}

        server{......}
    }


posted @ 2021-11-09 15:20  &Melody  阅读(1401)  评论(0编辑  收藏  举报