nginx首页中文乱码怎么解决
这篇文章主要讲解了“nginx首页中文乱码怎么解决”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“nginx首页中文乱码怎么解决”吧!
在/usr/local/nginx/conf/nginx.conf配置文件中插入charsetutf-8;或者charset'utf-8';server{listen80;server_namelocalhost;charsetutf-8;#access_loglogs/host.access.logmain;location/{roothtml;indexindex.htmlindex.htm;}或者server{listen80;server_namelocalhost;charset'utf-8';#access_loglogs/host.access.logmain;location/{roothtml;indexindex.htmlindex.htm;}重新加载配置文件
/usr/local/nginx/sbin/nginx-sreload
感谢各位的阅读,以上就是“nginx首页中文乱码怎么解决”的内容了,经过本文的学习后,相信大家对nginx首页中文乱码怎么解决这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。