解析如何在Apache服务器下设置URL访问中文编码
程序员文章站
2022-05-13 22:08:40
...
在/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 on10 SetServerEncoding GBK11 DefaultClientEncoding UTF-8 GBK GB231212 AddClientEncoding "(Microsoft .* DAV $)" UTF-8 GBK GB231213 AddClientEncoding "Microsoft .* DAV" UTF-8 GBK GB231214 AddClientEncoding "Microsoft-WebDAV*" UTF-8 GBK GB231215 </IfModule>
以上就是解析如何在Apache服务器下设置URL访问中文编码的详细内容,更多请关注其它相关文章!