当前位置首页 > Apache知识

eclipse提交subversion+apache的中文路径问题解决过程

阅读次数:59 次  来源:admin  发布时间:

原文链接:http://cavenfeng.iteye.com/blog/1921400

.download & patch:  
# wget http://webdav.todo.gr.jp/download/mod_encoding-20021209.tar.gz  
# wget http://webdav.todo.gr.jp/download/experimental/mod_encoding.c.apache2.20040616  
新版本mod_encoding.c 覆盖  
# cp mod_encoding.c.apache2.20040616 mod_encoding-20021209/mod_encoding.c  
  
这里必须要打一个apache 2.2的补丁。否则make也会出apxs rc=65536 之类的错误。  
# wget http://www.aconus.com/~oyaji/faq/mod_encoding.c-apache2.2-20060520.patch  
# cd mod_encoding-20021209   
# patch -p0 < mod_encoding.c-apache2.2-20060520.patch  
  
  
2.install iconv-hook  
# cd mod_encoding-20021209/lib  
# ./configure --prefix=/usr  
# make  
# make install  
# ldconfig  
  
3 build mod_encoding  
  
./configure --with-apxs=/usr/bin/apxs --with-iconv-hook=/usr/local/lib
make  
gcc -shared -o mod_encoding.so mod_encoding.o -Wc,-Wall -Llib -liconv_hook  
  
cp mod_encoding.so /opt/apache2.2/modules  
  
4. config apache 2.2   
  
LoadModule headers_module modules/mod_headers.so  
LoadModule encoding_module modules/mod_encoding.so  
<IfModule mod_headers.c>  
Header add MS-Author-Via "DAV"  
</IfModule>  
<IfModule mod_encoding.c>  
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  
</IfModule>  

注意:patch是一个系统命令,yum install patch 
上一篇:apache日志分析
下一篇:ubuntuLAMP本地环境配置