superman 发表于 2012-3-13 11:11:12

关于网站日志的问题

lnmp安装包安装虚拟主机的时候好像提示是否需要日志,我选的n,不知道这个日志是否就是记录蜘蛛来访的那个日志?
最近要做seo   得查看下蜘蛛来访的日志,不知道这个日志记录的是不是,如果是的话 我选的是否怎么样才能让日志工作?
如果不是的话 怎么样统计到网站日志?需要装什么吗?还希望高手能给个详细的教程,菜鸟在此谢谢了

superman 发表于 2012-3-13 12:00:58

人呢- -。都去吃饭啦啊

superman 发表于 2012-3-14 22:18:22

没人来告知一下吗?
:Q :Q :Q :Q

licess 发表于 2012-3-15 08:50:22

用/root/vhost.sh 再添加一次,把原因的配置文件再删掉就行了

superman 发表于 2012-3-15 10:37:12

回复 4# 的帖子

删除的话网站就不能正常工作了啊

superman 发表于 2012-3-15 10:39:27

回复 4# 的帖子

能不能手动修改虚拟主机的配置文件添加上那个日志?

superman 发表于 2012-3-15 11:14:42

回复 4# 的帖子

我把原来的access_log=off换成了以下代码      
log_formatxxx.log'$remote_addr - $remote_user [$time_local] $request '
             '$status $body_bytes_sent $http_referer '
             '$http_user_agent $http_x_forwarded_for';
                access_log/home/wwwlogs/xxx.log.logxxx.log;
不知道行不行?我查看了wwwlog目录没有发现我添加的xxx.log.log我在本地添加了一个上传了进去
不知道能不能生成日志?access_log/home/wwwlogs/xxx.log.logxxx.log;这点为什么会出现一个xxx.log.log 和xxx.log呢

licess 发表于 2012-3-15 11:28:03

回复 5# 的帖子

我前面已经说了,让你/root/vhost.sh 重新添加一般,明白?


行不行 /usr/local/nginx/sbin/nginx -t 测试看看就知道了

superman 发表于 2012-3-15 11:47:28

回复 8# 的帖子

nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
这样是不是证明添加有效了?就可以正常工作了吧?

licess 发表于 2012-3-15 13:11:04

页: [1]
查看完整版本: 关于网站日志的问题