我想把搜索引擎爬取的日志统计下来。但是不生成文件。

回复 收藏
网站是 win2003的系统 , 使用的是 wamp 的集成环境。 请高手给说下

    DocumentRoot "E:\webroot\111111"
    ServerName www.111111.com
    ServerAlias 111111.com
        CustomLog "|D:\wamp\bin\apache\Apache2.2.21\bin\rotatelogs.exe -l E:\webroot\log\111111\access-%Y-%m-%d.log 86400" combined

    AllowOverride All
    Options -Indexes FollowSymLinks
    Order allow,deny
    Allow from all


这样写后 , 在E:\webroot\log\111111\ 这个目录下却没有生成相应的日志文件。
2016-05-09 11:53 举报
已邀请:
0

宇浩

赞同来自:

学习学习!
0

ONE

赞同来自:

本帖最后由 ONE 于 2016-5-9 22:47 编辑

已经解决,问题发生在,路径方面需要转义吧。
CustomLog "|D:\/wamp\/bin\/apache\/Apache2.2.21\/bin\/rotatelogs.exe -l E:\/webroot\/log\/111111\/access-%Y-%m-%d.log 86400" combined   
这样写就OK了。
另外 很多看访问日志的,同样会被一些图片 css  js 的日志记录给干扰,非常不方便观看。


    SetEnv IMAG 1

CustomLog "|D:\/wamp\/bin\/apache\/Apache2.2.21\/bin\/rotatelogs.exe -l E:\/webroot\/log\/111111\/access-%Y-%m-%d.log 86400" combined  env=!IMAG

这样写就可以不记录 css js 图片等 记录。
0

阿铭 管理员

赞同来自:

ok

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: