nginx显示json数据

论坛 期权论坛 脚本     
匿名网站用户   2020-12-21 09:08   25   0

配置

在server端添加

default_type application/json;(不加点击会下载文件)

charset utf-8;(不加会显示乱码)


server {
listen 80;
server_name localhost;
charset utf-8;


default_type application/json;


#charset koi8-r;

#access_log logs/host.access.log main;
root "D:/phpstudy/PHPTutorial/WWW";
location / {
index index.html index.htm index.php l.php;
autoindex on;
}

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:1136255
帖子:227251
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP