Home > Operation and Maintenance > Linux Operation and Maintenance > Analyze how to set URL to access Chinese encoding under Apache server

Analyze how to set URL to access Chinese encoding under Apache server

巴扎黑
Release: 2017-07-22 10:00:41
Original
2282 people have browsed it

Add the following information at the end of the /usr/local/apache/conf/httpd.conf file:

 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>
Copy after login

The above is the detailed content of Analyze how to set URL to access Chinese encoding under Apache server. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template