解决错误:nginx: [emerg] unknown log format "main" in
2012-12-30 23:13
821 查看
重启nginx是出现了如下错误:
nginx: [emerg] unknown log format "proxy_log" in /usr/local/macports/etc/nginx/nginx.conf:147
解决办法:
打开nginx.conf,"main"错误是因为丢失了log_format选项,之前把他屏蔽掉了,修改之后问题解决。
nginx: [emerg] unknown log format "proxy_log" in /usr/local/macports/etc/nginx/nginx.conf:147
解决办法:
打开nginx.conf,"main"错误是因为丢失了log_format选项,之前把他屏蔽掉了,修改之后问题解决。
user nginx nginx; pid /var/log/nginx/nginx.pid; worker_processes 8; worker_rlimit_nofile 1024; events { worker_connections 2048; use epoll; } http { include mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] $request ' '"$status" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for" "$gzip_ratio"';access_log off; error_log /var/log/nginx/error.log error; include localhost.conf; }
相关文章推荐
- nginx: [emerg] unknown log format "main" in
- unknown log format "main" in /nginx/conf/nginx.conf
- Exception in thread "main" java.lang.LinkageError错误的解决
- "Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/helpers/NOPLoggerFactory"错误解决方
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- "Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/helpers/NOPLoggerFactory"错误解决方法
- Exception in thread "main" java.lang.NoClassDefFoundError:错误 如何解决?
- Nginx报错nginx: [emerg] unknown log format "main"
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- Exception in thread "main" java.lang.NoClassDefFoundError错误解决
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法以及文本文件换行
- nginx: [emerg] unknown directive "ssl" in 关于nginx的ssl模块没有编译进去的解决办法
- 解决Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
- Exception in thread "main" java.lang.LinkageError错误的解决
- nginx:[emerg] : getpwnam("root") failed in /usr/local/nginx/conf/nginx.conf:2解决办法
- Exception in thread "main" dbca 解决
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- 调用Application.Quit()方法时报"This operation cannot be performed in this event handler."错误的一种解决方法