Nginx configures the Chinese domain name and starts to configure the Chinese domain name directly written, but fails to parse the correct server. Then google finally found the cause.
The Nginx virtual host is bound with a domain name with Chinese characters, such as linuxeye. China. The browser cannot jump.
Why?
Because the core of the operating system is English, DNS Server Resolution is also performed by English code exchange, so the DNS server does not support direct Chinese domain name resolution, all Chinese domain names must be resolved to punycode, and then the punycode will be resolved by DNS. In fact, the Chinese domain name is perfectly supported by various browsers, but the browser software has automatically added the Chinese domain name to the code conversion, and does not need to re-install the Chinese domain name transcoding control to complete the entire process.
The Chinese domain name can be changed to Punycode encoding. The online transcoding address is http://tools.jb51.net/punycode/, for example:
Punycode?
Punycode is an Encoding System Based on RFC 3492 standards. It is mainly used to convert the Unicode encoding used by the local language into the encoding that can be used by the DNS system. The suffix of "Chinese domain name" is not supported by the standard resolution server and must be converted to punycode for resolution.
Modify Nginx Configuration
- Server {
- Listen 80;
- Server_name blog.linuxeye.com linuxeye. xn -- fiqs8s;
- ...
- }
Save and reload nginx:
- Service nginx reload
Thu Jan 28