Apache服務器URL訪問中文編碼設置
阿新 • • 發佈:2017-07-11
img nco eva .com usr author col div load
在/usr/local/apache/conf/httpd.conf文件末位添加以下信息:
1 #add chinese url code
2 LoadModule encoding_module /usr/local/apache/modules/mod_encoding.so
3 <IfModule mod_headers.c>
4 Header add MS-Author-Via "DAV"
5 </IfModule>
6
7 <IfModule mod_encoding.c>
8 EncodingEngine on
9 NormalizeUsername on
10 SetServerEncoding GBK
11 DefaultClientEncoding UTF-8 GBK GB2312
12 AddClientEncoding "(Microsoft .* DAV $)" UTF-8 GBK GB2312
13 AddClientEncoding "Microsoft .* DAV" UTF-8 GBK GB2312
14 AddClientEncoding "Microsoft-WebDAV*" UTF-8 GBK GB2312
15 </ IfModule>
Apache服務器URL訪問中文編碼設置