需要修改nginx的server的配置内容,增加一行:charset utf-8;
详情如下:
upstream you.domainName.com {
server 127.0.0.1:8080;
}
server {
listen 80;
server_name you.domainName.com;
charset utf-8;
location /examples {
return 403;
}
修改后,重启Nginx服务。
Windows版nginx重启命令:nginx.exe -s reload