XML 解析错误:不合格式 位置:tpl.html 行:23,列:12: <{t}>正在加载...<{/t}> -----------^
原因是nginx 打出的头信息是xml所导致,修改nginx mime.types 就可以解决
Accept-Ranges | bytes |
Content-Length | 1730 |
Content-Type | text/html |
Date | Tue, 27 May 2014 02:54:42 GMT |
Etag | "48c82-6c2-941a1d05" |
Last-Modified | Thu, 27 Feb 2014 06:39:09 GMT |
Server | Apache/2.2.6 (Win32) PHP/5.2.5 |
Accept-Ranges | bytes |
Content-Length | 1730 |
Content-Type | application/xhtml+xml |
Date | Tue, 27 May 2014 02:52:37 GMT |
Last-Modified | Tue, 27 May 2014 02:16:15 GMT |
Server | nginx/1.0.5 |
修改nginx mime.types:
增加 text/html html htm shtml;
然后重启nginx 。
有话要说