在centOS系统中配置nginx的过程中,访问浏览器可能出现
如下错误:
nginx: [emerg] unknown log format “access”。
解决:
在nginx.conf配置文件中 include vhost/*.conf; 前面添加
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
本文详细介绍了在CentOS系统中配置Nginx时遇到的常见错误:unknown log format 'access'。并提供了具体的解决方案,即在nginx.conf配置文件中正确设置log_format,以确保日志格式符合预期。
1810

被折叠的 条评论
为什么被折叠?



