hamen 发表于 2012-1-30 11:55:37

nginx重启出错

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

重启nginx出现这个提示,请问有人遇到过吗,怎么解决。

licess 发表于 2012-1-30 12:24:13

自行论坛搜索
https://bbs.vpser.net/viewthread.php?tid=6281&page=1&fromuid=3#pid17696

hamen 发表于 2012-1-30 12:32:18

log_formatphpfly.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.logphpfly.net;删掉这些access_log还会有效吗

hamen 发表于 2012-1-30 22:40:11

明白了。..............
页: [1]
查看完整版本: nginx重启出错