4.4.1社区版修改nginx文件时报错unknown log format “seatableformat”

升级4.4.1社区版后,修改nginx文件,容器启动正常,但是80端口无法启动。
通过nginx -t命令检查配置文件,报错如下:
nginx: [emerg] unknown log format “seatableformat” in /etc/nginx/sites-enabled/default:121 nginx: configuration file /etc/nginx/nginx.conf test failed

从错误信息中看,是 conf/nginx.conf 缺少 seatableformat 导致。

在 conf/nginx.conf 中添加下面内容,然后在容器中执行 nginx -s reload

log_format seatableformat '[$time_iso8601] $http_x_forwarded_for $remote_addr "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $upstream_response_time';

谢谢!!!通过你的方法,已经好用了。
一路从1.x版本升级上来的,估计有的配置文件升级过程中有了一些小问题。