Nginx记录用户请求Header到access log


参考  https://www.cnblogs.com/Serverlessops/p/13410262.html

log_format里增加字段: “$http_mycheck“‘

curl -H “mycheck: justtestlog” localhost/whatever.html