网站是 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\ 这个目录下却没有生成相应的日志文件。
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\ 这个目录下却没有生成相应的日志文件。
0
本帖最后由 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 图片等 记录。
已经解决,问题发生在,路径方面需要转义吧。
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 图片等 记录。
编辑回复