`
足至迹留
  • 浏览: 483529 次
  • 性别: Icon_minigender_1
  • 来自: OnePiece
社区版块
存档分类
最新评论

<nginx> [warn] the "log_format" directive may be used only on "http" level in *

 
阅读更多
1. 问题描述
nginx 1.4.6版本,在nginx.conf的server里配置了log_format,使用命令:nginx -t检查配置文件,报警告:
nginx: [warn] the "log_format" directive may be used only on "http" level in /etc/nginx/nginx.conf

2.解决办法
只需要把log_format配置移到server上面,同样是在http块里即可。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics