VPS侦探论坛

 找回密码
 注册
查看: 5887|回复: 1

[Apache] 关于日志

[复制链接]
发表于 2014-12-23 08:49:46 | 显示全部楼层 |阅读模式

已经在nginx.conf中指定log_format bbslog        '$remote_addr - $remote_port  $remote_user [$time_local] "$request" '
                                        '$status $body_bytes_sent "$http_referer" '
                                        '"$http_user_agent" "$http_x_forwarded_for"';


在server{}中也写了
access_log  /data/logs/bbslog/bbs.zjol.com.cn-access.log bbslog;

可是/usr/local/nginx/logs/access.log还是有记录,想问问access.log中是哪里配置的在输出日志?
nginx.conf中未找到。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-12-23 09:25:56 | 显示全部楼层


没重启nginx?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-4-20 13:46 , Processed in 0.026170 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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