2010年12月21日

lighttpd的日志文件的参数

%%     直接显示 % 号
%h     访问主机的名字和地址
%u     认证用户
%t     请求期限的时间戳
%r     请求行
%s     状态码
%b     传送给主体的字节
%i     Http头字段
%a     用户访问的IP地址
%A     本地地址
%B     和%b一样
%e     环境变量
%f     物理文件名
%H     请求的协议 (HTTP/1.0, ...)
%m     请求的方法 (GET, POST, ...)
%o     `回应头部`_
%p     服务器端口
%q     查询字符
%T     已使用的时间--以秒为单位
%U     请求的URL
%v     服务名字
%V     用户http请求的主机名
%X     连接状态
%I     上行的流量
%O     下行的流量

%{..}  这是accesslog模块提供了一个特别方法把应用程序的日志内容记录到日志文件里面。它可以记录会话ID到日志文件里面。

2010年12月1日

freebsd ports回到旧版本

今天更新了ports,主要目的是为安装fcitx4.0.安装完fcitx4.0后就后悔了!因为习惯了之前我修改过的fcitx3.6的界面,突然给我看到了这个界面,很不习惯。fcitx4.0的修改方法又和3.6不同。所以我就想回到3.6上面。下面是修改了ports-supfile文件就可以顺利进回退到旧的版本:

# Defaults that apply to all the collections
#
# IMPORTANT: Change the next line to use one of the CVSup mirror sites
# listed at http://www.freebsd.org/doc/handbook/mirrors.html.
*default host=cvsup.cn.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default date=2010.11.15.00.00.00
*default delete use-rel-suffix

# If you seem to be limited by CPU rather than network or disk bandwidth, try
# commenting out the following line.  (Normally, today's CPUs are fast enough
# that you want to run compression.)
*default compress

## Ports Collection.
#
# The easiest way to get the ports tree is to use the "ports-all"
# mega-collection.  It includes all of the individual "ports-*"
# collections,
#ports-all

# These are the individual collections that make up "ports-all".  If you
# use these, be sure to comment out "ports-all" above.
#
# Be sure to ALWAYS cvsup the ports-base collection if you use any of the
# other individual collections below. ports-base is a mandatory collection
# for the ports collection, and your ports may not build correctly if it
# is not kept up to date.
#ports-base
#ports-accessibility
#ports-arabic
#ports-archivers
#ports-astro
#ports-audio
#ports-benchmarks
#ports-biology
#ports-cad
ports-chinese
#ports-comms
#ports-converters
#ports-databases
#ports-deskutils
#ports-devel
#ports-dns
#ports-editors
#ports-emulators
#ports-finance
#ports-french
#ports-ftp
#ports-games
#ports-german
#ports-graphics
#ports-hebrew
#ports-hungarian
#ports-irc
#ports-japanese
#ports-java
#ports-korean
#ports-lang
#ports-mail
#ports-math
#ports-mbone
#ports-misc
#ports-multimedia
#ports-net
#ports-net-im
#ports-net-mgmt
#ports-net-p2p
#ports-news
#ports-palm
#ports-polish
#ports-ports-mgmt
#ports-portuguese
#ports-print
#ports-russian
#ports-science
#ports-security
#ports-shells
#ports-sysutils
#ports-textproc
#ports-ukrainian
#ports-vietnamese
#ports-www
#ports-x11
#ports-x11-clocks
#ports-x11-drivers
#ports-x11-fm
#ports-x11-fonts
#ports-x11-servers
#ports-x11-themes
#ports-x11-toolkits
#ports-x11-wm

里面红色部份的内容*default date=2010.11.15.00.00.00是回退到2010年11月15号时ports的内容.在这里我只让chinese部份更新,因为其它的都是今晚才更新了。