当在浏览器中敲入www.极客.com时,浏览器会转为 www.xn--ubt19y.com 其实中文域名就是一个经过编码的英文域名(中文域名-->punycode编码-->英文域名)在线转换地址http://www.webmasterhome.cn/tool/punycode.asp配置:listen 80;server_name www.xn--ubt19y.com;index index.html;
本文转自 geekwolf 51CTO博客,原文链接:http://blog.51cto.com/linuxgeek/1124370