[code]wget http://****/mod_encoding_64.tar.gz
tar zxvf mod_encoding_64.tar.gz
cd mod_encoding_64
patch -p0 < mod_encoding.c-apache2.2-20060520.patch
cd lib
chmod 755 configure
./configure –prefix=/usr
make
make install
ldconfig
cd ../
chmod 755 configure
cp -p /www/wdlinux/apache/bin/apxs /usr/bin
./configure –with-apxs=/www/wdlinux/apache/bin/apxs –with-iconv-hook=/usr/include
make
gcc -shared -o mod_encoding.so mod_encoding.o -Wc,-Wall -Llib -liconv_hook
cp mod_encoding.so /www/wdlinux/httpd-2.2.22/modules
LoadModule encoding_module modules/mod_encoding.so
EncodingEngine on
NormalizeUsername on
SetServerEncoding GBK
DefaultClientEncoding UTF-8 GBK GB2312
AddClientEncoding “(Microsoft .* DAV $)” UTF-8 GBK GB2312
AddClientEncoding “Microsoft .* DAV” UTF-8 GBK GB2312
AddClientEncoding “Microsoft-WebDAV*” UTF-8 GBK GB2312
重启服务[/code]