tft每日頭條

 > 科技

 > nginx錯誤碼處理

nginx錯誤碼處理

科技 更新时间:2024-07-22 17:28:25

nginx錯誤碼處理?在/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; } ,我來為大家科普一下關于nginx錯誤碼處理?以下内容希望對你有幫助!

nginx錯誤碼處理(解決nginx首頁中文亂碼問題)1

nginx錯誤碼處理

在/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

,

更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!

查看全部

相关科技资讯推荐

热门科技资讯推荐

网友关注

Copyright 2023-2024 - www.tftnews.com All Rights Reserved