2025年nginx- [emerg] unknown log format “access” in错误解决方法

nginx- [emerg] unknown log format “access” in错误解决方法在 centOS 系统中配置域名的过程中 访问浏览器可能出现 如下错误 nginx emerg unknown log format access 解决 在 nginx conf 配置文件中 include vhost conf 前面添加 log format access remote addr remote user time local

在centOS系统中配置域名的过程中,访问浏览器可能出现
如下错误:
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';
编程小号
上一篇 2025-01-24 10:27
下一篇 2025-02-27 11:17

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/hz/117569.html