awststs是一个非常好用的日记统计器材,下面我对其他重要Web Server/proxy(nginx,squid,lighttpd,httpd)的日记怎样举办说明睁开阐发。
在awstats设置批改最小的条件阐发怎样怎样举办批改,渴望对有必要的朋侪可以或许供给赞助。awstats日记说明之apacheapache:批改%apache%/conf/httpd.conf批改为:CustomLog logs/access_log combinedawstats:awstats.xxx.confLogFile="%apache%/logs/access_log"即可LogType=WLogFormat=1awstats日记说明之tomcat批改%tomcat%/conf/server.xml<!--<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>-->批改为:<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"prefix="localhost_access_log." suffix=".log" pattern="combined" fileDateFormat="yyyy-MM-dd" resolveHosts="false"/>awstats.xxx.confLogFile="%tomcat%/logs/access_log.%yyyy%mm%dd.log"即可LogType=WLogFormat=1awstats日记说明之nginx批改:%nginx%/conf/nginx.conf#log_format main '$remote_addr - $remote_user [$time_local] $request '# '"$status" $body_bytes_sent "$http_referer" '# '"$http_user_agent" "$http_x_forwarded_for"';#access_log logs/access.log main;批改为:log_format main '$remote_addr - $remote_user [$time_local] "$request" ''$status $body_bytes_sent "$http_referer" ''"$http_user_agent" $http_x_forwarded_for';access_log logs/access.log main;awstats.xxx.confLogFile="%nginx%/logs/access.log."即可LogType=WLogFormat=1awstats日记说明之squid批改:%squid%/etc/squid.confaccess_log /usr/local/opt/squid//var/logs/access.log squid批改为:logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Shaccess_log /usr/local/opt/squid/var/logs/access.log combinedLogFile="%squid%/var/log/access.log."即可LogType=WLogFormat=1awstats日记说明之lighttpdawstats直接支持lighttpd默认的日记输出技俩。