Solution for 403 error when accessing a URL containing Chinese characters After PHP pseudo-static access

Source: Internet
Author: User

Author: Tank http://hi.baidu.com/uroot 2008.1.31 Tank Original
Configuration:
The configuration file in httpd. conf is written in the same way as that in Linux.
Environment: Apache 2.2.x, Windows Server 2003 or Windows XP
First, ensure that your apache2.2.x can be started normally and provide services. The word it works appears when ie accesses the Server HTTP.
1: You need to download a http://www.zlatkovic.com/pub/libxml/ iconv. DLL to the Windows system32 directory. If you select static Link Library iconv_a.lib when linking iconv. This step is not required. Other services, such as msvcrt80.dll, are deployed to the target server if necessary.
System32 directory.
2: Copy mod_encoding.dll to the Apache modules directory. For example, c: \ apache2 \ modules
3. modify the configuration file httpd. conf In the conf subdirectory of Apache.
Add the following Configuration:
Loadmodule headers_module modules/mod_headers.so
# Mod_headers must be loaded
Loadmodule encoding_module modules/mod_encoding.dll
<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> then restart Apache. If an error occurs during Apache startup, see error. log in the logs subdirectory of the Apache installation directory.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.