# vi /usr/local/www/data/pwebstats/conf/squid-proxy.conf
修改pwebstats设定档
# pwebstats configuration file for http
server
#
# Unique nickname for server.
# use only a-z, A-Z and _
# e.g. server:proxy
server:ABC_KS //建立databases名称,会建立於pwebstats下
# Header for index page.
# e.g. Server_header:The TelDem Enterprises Caching Proxy Server
Server_header:高县代理伺服器 //网页呈现标题
# Location of latest log file
logfile:/home/squid/var/logs/access.log.0
//最新log档位置
# Type of log file - use 'squid-emulated'
if you have the httpd log
# emulation option turned on in squid.
logtype:squid
# Location for the output of pwebstats.
# e.g. outdir:/home/servers/http/teldem/proxy-usage
outdir:/usr/local/www/htdocs/pwebstats //分析结果输出位置
# directory containing GIF templates
# e.g. templates:/home/servers/http/pwebstats/templates
templates:/usr/local/www/htdocs/pwebstats/templates //分析图档所在位置
# Stats collection interval
# can be one of daily, weekly, monthly, quarterly
interval:daily //分析周期
# Verbose? Yes
verbose:true
# Location of 'fly'
# e.g. fly_prog:/home/servers/http/pwebstats/fly/fly
fly_prog:/usr/local/bin/fly //画图所需程式位置
# regular expression matching your local
hostnames and IP numbers
# e.g. local_patt:\.unimelb\.edu\.au$|^128\.250|^localhost$|250\.128\.in\-addr\.arpa
local_patt:\.ks\.edu\.tw$|^163\.16 //本机正反解
# threshold for host count lists
host_threshold:100 //连线百大排行
# threshold for remote host count lists
remote_host_threshold:100 //出去要百大排行
# threshold for request count lists
item_threshold:100
# threshold for domain count lists
domain_threshold:5
# don't generate request/accesses information
# (recommended for proxy stats)
exclude_reqs:true
# completely ignore access from this set
of hostnames ( | is the delimeter)
# complete_exclude_host:foo1.users.bar.com|foo2.users.bar.com|foo3.users.bar.com
#
# You might like to add the IP numbers and/or hostnames of your
squid neighbours
# so you just get the information about local users.
#complete_exclude_host:
# completely ignore access to this pattern of URLs
# complete_exclude_url_patt:^/foo/bar/*$|^/robots.txt$
#complete_exclude_url_patt:
# completely ignore access from this set of users ( | is the delimeter)
# complete_exclude_user:tom|dick|harry
#complete_exclude_user:
# do IP number -> hostname resolution
#dns_lookup:true