Nginx 打印body体内容(转载)

举报
隔壁老汪 发表于 2022/06/24 23:58:01 2022/06/24
【摘要】 #user nobody;worker_processes 1; events { worker_connections 1024;} http { include mime.types; default_type application/octet-stream; lua_package...

  
  1. #user nobody;
  2. worker_processes 1;
  3. events {
  4. worker_connections 1024;
  5. }
  6. http {
  7. include mime.types;
  8. default_type application/octet-stream;
  9. lua_package_path "/usr/local/nginx/conf/waf/?.lua";
  10. lua_shared_dict limit 10m;
  11. init_by_lua_file /usr/local/nginx/conf/waf/init.lua;
  12. access_by_lua_file /usr/local/nginx/conf/waf/waf.lua;
  13. log_format main '$remote_addr - $remote_user [$time_local] '
  14. '"$request" $status $body_bytes_sent '
  15. '"$http_referer" "$http_user_agent" $request_time req_body:"$request_body"'
  16. ' resp_body:"$resp_body" resp_header:"$resp_header"';
  17. access_log logs/access.log main;
  18. sendfile on;
  19. server {
  20. listen 80;
  21. server_name localhost;
  22. location / {
  23. root html;
  24. index index.html index.htm;
  25. }
  26. error_page 500 502 503 504 /50

文章来源: blog.csdn.net,作者:隔壁老瓦,版权归原作者所有,如需转载,请联系作者。

原文链接:blog.csdn.net/wxb880114/article/details/108451387

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。