Nginx 完全配置
入门教程
设置静态网页编码
- 针对服务器
http {
...
charset UTF-8;
...
include /etc/nginx/conf.d/*.conf;
}
- 针对location
server {
listen 80;
server_name _;
location / {
charset UTF-8;
}
}

更多精彩
http {
...
charset UTF-8;
...
include /etc/nginx/conf.d/*.conf;
}
server {
listen 80;
server_name _;
location / {
charset UTF-8;
}
}