新聞中心
這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
nginx首頁(yè)中文亂碼問(wèn)題解決方法
nginx首頁(yè)中文亂碼如何解決?本篇文章為大家分享一下nginx首頁(yè)中文亂碼問(wèn)題解決方法,有需要的小伙伴可以參考一下。

解決方法
在/usr/local/nginx/conf/nginx.conf 配置文件中插入charset utf-8;或者charset 'utf-8';
server {
listen 80;
server_name localhost;
charset utf-8;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
或者
server {
listen 80;
server_name localhost;
charset 'utf-8';
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
重新加載配置文件
/usr/local/nginx/sbin/nginx -s reload
網(wǎng)站欄目:nginx首頁(yè)中文亂碼問(wèn)題解決方法
分享網(wǎng)址:http://www.dlmjj.cn/article/djodope.html


咨詢(xún)
建站咨詢(xún)
