Nginx access.log中文變成十六進制解決

log_format data escape=json  '$remote_addr | $remote_user | [$time_local] | '
            '"$request" | $status | $body_bytes_sent | '
            '"$http_referer" | "$http_user_agent" | $request_time | $http_HEADER | \n'
            'req_header:"$req_header" \n    req_body:"$request_body" \n'
            'resp_header:"$resp_header" \n    resp_body:"$resp_body"\n\n';
        access_log  logs/access.log  data;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章