Nginx 为 http header 添加Charset utf-8

LNMPA下的http头信息的Content-Type: text/html 没有设置charset=utf-8

添加方法很简单

修改 /usr/local/nginx/conf/nginx.conf 在http, server, 或 location 下添加

使用 curl -IL info.shibangsoft.com 查看如下

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *


7 × = fifty six

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">