在http节点下添加

log_format  mai2 '$remote_addr - $remote_user [$time_local] "$request" '
            '$status $body_bytes_sent "$http_referer" '
            '"$http_user_agent" "$http_x_forwarded_for" "$dm_cookie"';

在对应的server节点下添加

set $dm_cookie "";
if ($http_cookie ~* "(.+)(?:;|$)") {
  set $dm_cookie $1;
}

并将对应的log format改为 mai2

access_log logs/mobile-ssl.access.log mai2;

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2021-10-17
  • 2022-01-13
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
猜你喜欢
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案