解决方法
在/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
博客介绍了配置文件问题的解决方法,即通过在配置文件中插入内容或重新加载配置文件来解决问题。
877

被折叠的 条评论
为什么被折叠?



