VPS侦探论坛

 找回密码
 注册
查看: 5801|回复: 3

nginx重启出错

[复制链接]
发表于 2012-1-30 11:55:37 | 显示全部楼层 |阅读模式

nginx: [warn] the "log_format" directive may be used only on "http" level in /usr/local/nginx/conf/nginx.conf:84

重启nginx出现这个提示,请问有人遇到过吗,怎么解决。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-1-30 12:24:13 | 显示全部楼层
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-1-30 12:32:18 | 显示全部楼层

log_format  phpfly.net  '$remote_addr - $remote_user [$time_loca
$request '
          '$status $body_bytes_sent $http_referer '
          '$http_user_agent $http_x_forwarded_for';
          '$http_user_agent $http_x_forwarded_for';
             access_log  /home/wwwlogs/phpfly.net.log  phpfly.net;  删掉这些access_log还会有效吗
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-1-30 22:40:11 | 显示全部楼层



明白了。..............
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 05:39 , Processed in 0.026016 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表