Linux Apache支持中文图片、文件名的访问终极解决
我的实际操作如下:
1、下载安装包
2、直接解压,看到2个安装包,先安装iconv_hook-1.0.0-1.i386.rpm
3、#rpm -ivh iconv_hook-1.0.0-1.i386.rpm
4、#rpm -ivh mod_encoding-2.2.0-1.i386.rpm
5、检查配置文件httpd.conf,加入以下内容
LoadModule encoding_module modules/mod_encoding.so
Module mod_headers.c>
Header add MS-Author-Via "DAV"
Module>
Module 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
Module>
6、#service httpd restart
1