Apache服务器URL访问中文编码设置

Apache服务器URL访问中文编码设置,在/usr/local/apache/conf/httpd.conf文件末位添加以下信息:

#add chinese url code
 LoadModule encoding_module /usr/local/apache/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>

Apache服务器URL访问中文编码设置

更多Apache相关教程见以下内容

相关推荐